diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2013-04-04 01:15:54 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2013-04-04 01:15:54 +0200 |
commit | 3c88a76b1be759d13097810877d6e990b3371726 (patch) | |
tree | dd5627700ef12be7c55d9f3ceda5a9575691a337 /topicmodel.cpp | |
parent | 723e0e7f37636379f76008582dca459490b845f4 (diff) | |
download | tapasboard-3c88a76b1be759d13097810877d6e990b3371726.tar.gz tapasboard-3c88a76b1be759d13097810877d6e990b3371726.zip |
implement refresh action
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(); |