summaryrefslogtreecommitdiff
path: root/forummodel.h
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2013-04-04 15:49:31 +0200
committerJavier S. Pedro <maemo@javispedro.com>2013-04-04 15:49:31 +0200
commitd8fcff1a2d6eb61c97c44790dbdb920ba9f52980 (patch)
tree49df7f1e07e34061301ad5944a1807feba24b526 /forummodel.h
parent11b4152301b408c7a4f02a8b202fed9f5e1ee1e7 (diff)
downloadtapasboard-d8fcff1a2d6eb61c97c44790dbdb920ba9f52980.tar.gz
tapasboard-d8fcff1a2d6eb61c97c44790dbdb920ba9f52980.zip
add showing unread posts
Diffstat (limited to 'forummodel.h')
-rw-r--r--forummodel.h4
1 files changed, 3 insertions, 1 deletions
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;
};