Anoncoin  0.9.4
P2P Digital Currency
monitoreddatamapper.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2013 The Bitcoin developers
2 // Copyright (c) 2013-2014 The Anoncoin Core developers
3 // Distributed under the MIT/X11 software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 
6 #ifndef MONITOREDDATAMAPPER_H
7 #define MONITOREDDATAMAPPER_H
8 
9 #include <QDataWidgetMapper>
10 
11 QT_BEGIN_NAMESPACE
12 class QWidget;
13 QT_END_NAMESPACE
14 
18 class MonitoredDataMapper : public QDataWidgetMapper
19 {
20  Q_OBJECT
21 
22 public:
23  explicit MonitoredDataMapper(QObject *parent=0);
24 
25  void addMapping(QWidget *widget, int section);
26  void addMapping(QWidget *widget, int section, const QByteArray &propertyName);
27 
28 private:
29  void addChangeMonitor(QWidget *widget);
30 
31 signals:
32  void viewModified();
33 };
34 
35 #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)