From 427004acc6a80004f69c6ce059667465023269a9 Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Tue, 2 Apr 2013 00:51:58 +0200 Subject: parse bbcode, show usernames, .... --- topicmodel.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'topicmodel.h') diff --git a/topicmodel.h b/topicmodel.h index 95a3f78..39dcdee 100644 --- a/topicmodel.h +++ b/topicmodel.h @@ -21,7 +21,12 @@ public: IconRole = Qt::DecorationRole, ContentRole = Qt::ToolTipRole, - PostIdRole = Qt::UserRole + PostIdRole = Qt::UserRole, + UserIdRole, + UserNameRole, + DateTimeRole, + HumanDateRole, + HumanTimeRole }; QString boardUrl() const; @@ -45,12 +50,14 @@ protected: int post_id; QString title; QString content; + int user_id; + QString user_name; QDateTime time; QDateTime last_update_time; }; private: - static QDateTime parseDateTime(const QVariant& v); + static QDateTime parseDbDateTime(const QVariant& v); static QDateTime oldestPostUpdate(const QList& posts); QDateTime lastTopPostUpdate(); QList loadPosts(int start, int end); -- cgit v1.2.3