diff options
author | Kevin Smith <git@kismith.co.uk> | 2009-07-26 16:31:58 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2009-07-26 16:31:58 (GMT) |
commit | 3d6db73e834b745f2abadd04f8309d96f2b41b9c (patch) | |
tree | bd02aa7ad336ebfa33117d9566791b66fa4cf6c7 /Swift/QtUI/Roster/RosterModel.h | |
parent | a28d92f3458218d6effbfdd9a42bf8fbe8b8aa72 (diff) | |
download | swift-3d6db73e834b745f2abadd04f8309d96f2b41b9c.zip swift-3d6db73e834b745f2abadd04f8309d96f2b41b9c.tar.bz2 |
The new roster now renders (badly) the contents.
Diffstat (limited to 'Swift/QtUI/Roster/RosterModel.h')
-rw-r--r-- | Swift/QtUI/Roster/RosterModel.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Swift/QtUI/Roster/RosterModel.h b/Swift/QtUI/Roster/RosterModel.h index a958f0d..fbede32 100644 --- a/Swift/QtUI/Roster/RosterModel.h +++ b/Swift/QtUI/Roster/RosterModel.h @@ -7,14 +7,18 @@ namespace Swift { class RosterModel : public QAbstractItemModel { +Q_OBJECT public: - RosterModel(RosterItem* tree); + RosterModel(); ~RosterModel(); + void setRoot(RosterItem* tree); int columnCount(const QModelIndex& parent = QModelIndex()) const; QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const; QModelIndex index(int row, int column, const QModelIndex & parent = QModelIndex()) const; QModelIndex parent(const QModelIndex& index) const; int rowCount(const QModelIndex& parent = QModelIndex()) const; +private slots: + void handleItemChanged(); private: RosterItem* tree_; }; |