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