aboutsummaryrefslogtreecommitdiff
path: root/gui/include
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2011-06-02 17:48:45 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2011-06-02 17:56:51 +0200
commit44384a4602821216023ee63157ac6e376d1e9e10 (patch)
tree8820866d45114cdc0cec86fcde05a4fb80ff8317 /gui/include
parent5c94371f9a9bf41a5544403ee87ac331c2b0b1c3 (diff)
edit address dialog: basic data/widget binding
Diffstat (limited to 'gui/include')
-rw-r--r--gui/include/addresstablemodel.h1
-rw-r--r--gui/include/editaddressdialog.h9
2 files changed, 10 insertions, 0 deletions
diff --git a/gui/include/addresstablemodel.h b/gui/include/addresstablemodel.h
index 6617bb3e89..f9ccab4eb6 100644
--- a/gui/include/addresstablemodel.h
+++ b/gui/include/addresstablemodel.h
@@ -28,6 +28,7 @@ public:
int rowCount(const QModelIndex &parent) const;
int columnCount(const QModelIndex &parent) const;
QVariant data(const QModelIndex &index, int role) const;
+ bool setData(const QModelIndex & index, const QVariant & value, int role);
QVariant headerData(int section, Qt::Orientation orientation, int role) const;
QModelIndex index(int row, int column, const QModelIndex & parent) const;
diff --git a/gui/include/editaddressdialog.h b/gui/include/editaddressdialog.h
index 8e4a0388c2..3d8a5dcf8d 100644
--- a/gui/include/editaddressdialog.h
+++ b/gui/include/editaddressdialog.h
@@ -3,9 +3,14 @@
#include <QDialog>
+QT_BEGIN_NAMESPACE
+class QDataWidgetMapper;
+QT_END_NAMESPACE
+
namespace Ui {
class EditAddressDialog;
}
+class AddressTableModel;
class EditAddressDialog : public QDialog
{
@@ -22,8 +27,12 @@ public:
explicit EditAddressDialog(Mode mode, QWidget *parent = 0);
~EditAddressDialog();
+ void setModel(AddressTableModel *model);
+ void loadRow(int row);
+
private:
Ui::EditAddressDialog *ui;
+ QDataWidgetMapper *mapper;
};
#endif // EDITADDRESSDIALOG_H