mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-28 03:35:38 +08:00
Text message view, scroll down if sorted by timestamp
This commit is contained in:
committed by
Mat Sutcliffe
parent
a1ea9a2e10
commit
9dc85da42d
@@ -35,5 +35,11 @@ namespace BlackGui
|
||||
{
|
||||
return m_model->isSortedByTimestampProperty();
|
||||
}
|
||||
|
||||
bool CTextMessageView::isSortedByTimestampPropertyLatestLast() const
|
||||
{
|
||||
return m_model->isSortedByTimestampProperty() && this->getSortOrder() == Qt::AscendingOrder;
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // namespace
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user