aboutsummaryrefslogtreecommitdiff
path: root/gui/include
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2011-06-01 15:50:09 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2011-06-01 17:15:43 +0200
commitf96681c5e440e1ebbcb8c79d868a14c2c51c5298 (patch)
tree1bc91e066bcf067408b010a65f769b03fe20005a /gui/include
parentc51f051257e678b3fd26efdd84a89329420c96f5 (diff)
beginning of address model
Diffstat (limited to 'gui/include')
-rw-r--r--gui/include/addresstablemodel.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/gui/include/addresstablemodel.h b/gui/include/addresstablemodel.h
index 97780c5428..81fad6db25 100644
--- a/gui/include/addresstablemodel.h
+++ b/gui/include/addresstablemodel.h
@@ -2,12 +2,16 @@
#define ADDRESSTABLEMODEL_H
#include <QAbstractTableModel>
+#include <QStringList>
+
+class AddressTablePriv;
class AddressTableModel : public QAbstractTableModel
{
Q_OBJECT
public:
explicit AddressTableModel(QObject *parent = 0);
+ ~AddressTableModel();
enum {
Label = 0, /* User specified label */
@@ -25,7 +29,10 @@ public:
int columnCount(const QModelIndex &parent) const;
QVariant data(const QModelIndex &index, int role) const;
QVariant headerData(int section, Qt::Orientation orientation, int role) const;
- Qt::ItemFlags flags(const QModelIndex &index) const;
+ QModelIndex index ( int row, int column, const QModelIndex & parent ) const;
+private:
+ AddressTablePriv *priv;
+ QStringList columns;
signals:
public slots: