Ref T529, allow to explicitly set no sort order in model/view

This commit is contained in:
Klaus Basan
2019-02-04 16:52:50 +01:00
committed by Mat Sutcliffe
parent 14c3c51585
commit 3aee73840d
5 changed files with 31 additions and 3 deletions

View File

@@ -38,7 +38,7 @@ namespace BlackGui
void CStatusMessagesDetail::appendStatusMessageToList(const CStatusMessage &message)
{
if (message.isEmpty()) { return; }
m_pending.push_front(message); // in many cases we want to havethe latest "on top"
m_pending.push_front(message); // in many cases we want to have the latest "on top"
m_dsDeferredUpdate.inputSignal();
}
@@ -87,6 +87,16 @@ namespace BlackGui
ui->filter_LogMessages->useRadioButtonDescriptiveIcons(oneCharacterText);
}
void CStatusMessagesDetail::setSorting(const CPropertyIndex &propertyIndex, Qt::SortOrder order)
{
ui->tvp_StatusMessages->setSorting(propertyIndex, order);
}
void CStatusMessagesDetail::setNoSorting()
{
ui->tvp_StatusMessages->setNoSorting();
}
void CStatusMessagesDetail::deferredUpdate()
{
if (m_pending.isEmpty()) { return; }