code adjust

This commit is contained in:
Aniket Kumar 2020-04-08 22:49:00 +05:30 committed by Simon Redman
parent d7c93488a8
commit 75c87e6fdf

View file

@ -35,13 +35,13 @@ ConversationsSortFilterProxyModel::ConversationsSortFilterProxyModel()
setFilterRole(ConversationListModel::ConversationIdRole);
}
ConversationsSortFilterProxyModel::~ConversationsSortFilterProxyModel() {}
void ConversationsSortFilterProxyModel::setConversationsFilterRole(int role)
{
setFilterRole(role);
}
ConversationsSortFilterProxyModel::~ConversationsSortFilterProxyModel() {}
bool ConversationsSortFilterProxyModel::lessThan(const QModelIndex& leftIndex, const QModelIndex& rightIndex) const
{
QVariant leftDataTimeStamp = sourceModel()->data(leftIndex, ConversationListModel::DateRole);