diff options
Diffstat (limited to 'topicmodel.cpp')
-rw-r--r-- | topicmodel.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
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(); |