From d8fcff1a2d6eb61c97c44790dbdb920ba9f52980 Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Thu, 4 Apr 2013 15:49:31 +0200 Subject: add showing unread posts --- forummodel.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'forummodel.h') diff --git a/forummodel.h b/forummodel.h index 4c00692..d0dd980 100644 --- a/forummodel.h +++ b/forummodel.h @@ -22,7 +22,8 @@ public: TopicIdRole = Qt::UserRole, TopicTypeRole, - NumRepliesRole + NumRepliesRole, + UnreadRole }; Board * board() const; @@ -49,6 +50,7 @@ protected: int topic_id; QString title; int num_replies; + bool unread; QDateTime last_reply_time; QDateTime last_update_time; }; -- cgit v1.2.3