Feathercoin  0.5.0
P2P Digital Currency
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
monitoreddatamapper.h
Go to the documentation of this file.
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 
13 class MonitoredDataMapper : public QDataWidgetMapper
14 {
15  Q_OBJECT
16 
17 public:
18  explicit MonitoredDataMapper(QObject *parent=0);
19 
20  void addMapping(QWidget *widget, int section);
21  void addMapping(QWidget *widget, int section, const QByteArray &propertyName);
22 
23 private:
24  void addChangeMonitor(QWidget *widget);
25 
26 signals:
27  void viewModified();
28 };
29 
30 #endif // MONITOREDDATAMAPPER_H
void addMapping(QWidget *widget, int section)
Data to Widget mapper that watches for edits and notifies listeners when a field is edited...
MonitoredDataMapper(QObject *parent=0)
void addChangeMonitor(QWidget *widget)