From 3c88a76b1be759d13097810877d6e990b3371726 Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Thu, 4 Apr 2013 01:15:54 +0200 Subject: implement refresh action --- forummodel.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'forummodel.h') 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; }; -- cgit v1.2.3