mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 02:35:33 +08:00
Ref T529, allow to explicitly set no sort order in model/view
This commit is contained in:
committed by
Mat Sutcliffe
parent
14c3c51585
commit
3aee73840d
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user