aboutsummaryrefslogtreecommitdiff
path: root/src/qt/monitoreddatamapper.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2014-10-23 19:08:10 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2014-10-23 19:09:34 +0200
commitd2833de42430b7771eb572d71ba81eec1079f91f (patch)
tree32e638b4c8a09f0fb9e117d1c9bda95c708a6e9d /src/qt/monitoreddatamapper.h
parentc8a25189bcb1381eddf46b9a9743ba48e929439e (diff)
qt: remove monitoreddatamapper
We haven't used the viewModified signal in ages, so we can use a normal QDataWidgetMapper.
Diffstat (limited to 'src/qt/monitoreddatamapper.h')
-rw-r--r--src/qt/monitoreddatamapper.h34
1 files changed, 0 insertions, 34 deletions
diff --git a/src/qt/monitoreddatamapper.h b/src/qt/monitoreddatamapper.h
deleted file mode 100644
index b3237d3e09..0000000000
--- a/src/qt/monitoreddatamapper.h
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright (c) 2011-2013 The Bitcoin developers
-// Distributed under the MIT/X11 software license, see the accompanying
-// file COPYING or http://www.opensource.org/licenses/mit-license.php.
-
-#ifndef MONITOREDDATAMAPPER_H
-#define MONITOREDDATAMAPPER_H
-
-#include <QDataWidgetMapper>
-
-QT_BEGIN_NAMESPACE
-class QWidget;
-QT_END_NAMESPACE
-
-/** Data to Widget mapper that watches for edits and notifies listeners when a field is edited.
- This can be used, for example, to enable a commit/apply button in a configuration dialog.
- */
-class MonitoredDataMapper : public QDataWidgetMapper
-{
- Q_OBJECT
-
-public:
- explicit MonitoredDataMapper(QObject *parent=0);
-
- void addMapping(QWidget *widget, int section);
- void addMapping(QWidget *widget, int section, const QByteArray &propertyName);
-
-private:
- void addChangeMonitor(QWidget *widget);
-
-signals:
- void viewModified();
-};
-
-#endif // MONITOREDDATAMAPPER_H