Text message view, scroll down if sorted by timestamp

This commit is contained in:
Klaus Basan
2020-01-05 23:56:17 +01:00
committed by Mat Sutcliffe
parent a1ea9a2e10
commit 9dc85da42d
4 changed files with 16 additions and 17 deletions

View File

@@ -35,5 +35,11 @@ namespace BlackGui
{
return m_model->isSortedByTimestampProperty();
}
bool CTextMessageView::isSortedByTimestampPropertyLatestLast() const
{
return m_model->isSortedByTimestampProperty() && this->getSortOrder() == Qt::AscendingOrder;
}
} // namespace
} // namespace

View File

@@ -35,6 +35,9 @@ namespace BlackGui
//! Sorted by a timestamp property
bool isSortedByTimestampProperty() const;
//! Sorted by a timestamp property, latest messages at the end
bool isSortedByTimestampPropertyLatestLast() const;
};
} // namespace
} // namespace