diff options
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; }; |