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 --- topicmodel.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'topicmodel.cpp') diff --git a/topicmodel.cpp b/topicmodel.cpp index 965481f..c058a6a 100644 --- a/topicmodel.cpp +++ b/topicmodel.cpp @@ -156,6 +156,15 @@ void TopicModel::fetchMore(const QModelIndex &parent) } } +void TopicModel::refresh() +{ + // Forcefully refresh all posts on this topic + _board->enqueueAction(new FetchPostsAction(_topicId, + 0, + FetchPostsAction::FetchAllPosts, + _board)); +} + QDateTime TopicModel::parseDbDateTime(const QVariant &v) { QString s = v.toString(); -- cgit v1.2.3