From 5c3ba8460a9784acb784337a2c11b5175fd7c011 Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Wed, 1 May 2013 02:42:50 +0200 Subject: rewrite date/time formatting --- topicmodel.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'topicmodel.cpp') 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; } -- cgit v1.2.3