1 #ifndef MONITOREDDATAMAPPER_H
2 #define MONITOREDDATAMAPPER_H
4 #include <QDataWidgetMapper>
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.
13 class MonitoredDataMapper : public QDataWidgetMapper
17 explicit MonitoredDataMapper(QObject *parent=0);
19 void addMapping(QWidget *widget, int section);
20 void addMapping(QWidget *widget, int section, const QByteArray &propertyName);
22 void addChangeMonitor(QWidget *widget);
31 #endif // MONITOREDDATAMAPPER_H