Update CMakeLists.txt - play with openssl
[novacoin.git] / src / qt / monitoreddatamapper.h
1 #ifndef MONITOREDDATAMAPPER_H
2 #define MONITOREDDATAMAPPER_H
3
4 #include <QDataWidgetMapper>
5
6 QT_BEGIN_NAMESPACE
7 class QWidget;
8 QT_END_NAMESPACE
9
10 /** Data to Widget mapper that watches for edits and notifies listeners when a field is edited.
11    This can be used, for example, to enable a commit/apply button in a configuration dialog.
12  */
13 class MonitoredDataMapper : public QDataWidgetMapper
14 {
15     Q_OBJECT
16 public:
17     explicit MonitoredDataMapper(QObject *parent=0);
18
19     void addMapping(QWidget *widget, int section);
20     void addMapping(QWidget *widget, int section, const QByteArray &propertyName);
21 private:
22     void addChangeMonitor(QWidget *widget);
23
24 signals:
25     void viewModified();
26
27 };
28
29
30
31 #endif // MONITOREDDATAMAPPER_H