diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2013-04-04 01:15:54 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2013-04-04 01:15:54 +0200 |
commit | 3c88a76b1be759d13097810877d6e990b3371726 (patch) | |
tree | dd5627700ef12be7c55d9f3ceda5a9575691a337 /forummodel.h | |
parent | 723e0e7f37636379f76008582dca459490b845f4 (diff) | |
download | tapasboard-3c88a76b1be759d13097810877d6e990b3371726.tar.gz tapasboard-3c88a76b1be759d13097810877d6e990b3371726.zip |
implement refresh action
Diffstat (limited to 'forummodel.h')
-rw-r--r-- | forummodel.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/forummodel.h b/forummodel.h index 5a84f64..0458cfd 100644 --- a/forummodel.h +++ b/forummodel.h @@ -21,7 +21,8 @@ public: IconRole = Qt::DecorationRole, TopicIdRole = Qt::UserRole, - TopicTypeRole + TopicTypeRole, + NumPostsRole }; Board * board() const; @@ -36,6 +37,9 @@ public: bool canFetchMore(const QModelIndex &parent = QModelIndex()) const; void fetchMore(const QModelIndex &parent = QModelIndex()); +public slots: + void refresh(); + signals: void boardChanged(); void forumIdChanged(); @@ -44,6 +48,7 @@ protected: struct Topic { int topic_id; QString title; + int num_replies; QDateTime last_reply_time; QDateTime last_update_time; }; |