diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2011-06-01 15:50:09 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2011-06-01 17:15:43 +0200 |
commit | f96681c5e440e1ebbcb8c79d868a14c2c51c5298 (patch) | |
tree | 1bc91e066bcf067408b010a65f769b03fe20005a /gui/include | |
parent | c51f051257e678b3fd26efdd84a89329420c96f5 (diff) |
beginning of address model
Diffstat (limited to 'gui/include')
-rw-r--r-- | gui/include/addresstablemodel.h | 9 |
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: |