diff options
Diffstat (limited to 'topicmodel.cpp')
-rw-r--r-- | topicmodel.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/topicmodel.cpp b/topicmodel.cpp index 36fc4c0..abfd04b 100644 --- a/topicmodel.cpp +++ b/topicmodel.cpp @@ -132,9 +132,12 @@ QVariant TopicModel::data(const QModelIndex &index, int role) const case DateTimeRole: return _data[row].time; case HumanDateRole: - return _board->renderHumanDate(_data[row].time); + return _board->formatDateTime(_data[row].time, + Board::RelativeDate); case HumanTimeRole: - return _board->renderHumanDateTime(_data[row].time); + return _board->formatDateTime(_data[row].time, + Board::ShowTime | Board::RelativeTime | + Board::TodayYesterday); case UnreadRole: return _firstUnread >= 0 && row >= _firstUnread; } |