mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-20 12:35:43 +08:00
Ref T82, allow to sort by severity
This commit is contained in:
@@ -120,6 +120,11 @@ namespace BlackMisc
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CStatusMessageList::sortBySeverity()
|
||||||
|
{
|
||||||
|
this->sortBy(&CStatusMessage::getSeverity);
|
||||||
|
}
|
||||||
|
|
||||||
void CStatusMessageList::removeWarningsAndBelow()
|
void CStatusMessageList::removeWarningsAndBelow()
|
||||||
{
|
{
|
||||||
if (this->isEmpty()) { return; }
|
if (this->isEmpty()) { return; }
|
||||||
|
|||||||
@@ -88,6 +88,9 @@ namespace BlackMisc
|
|||||||
//! And higher (more critical) severity will be clipped to given severity
|
//! And higher (more critical) severity will be clipped to given severity
|
||||||
void clampSeverity(CStatusMessage::StatusSeverity severity);
|
void clampSeverity(CStatusMessage::StatusSeverity severity);
|
||||||
|
|
||||||
|
//! Sort by severity, lowest first
|
||||||
|
void sortBySeverity();
|
||||||
|
|
||||||
//! Remove warnings and below
|
//! Remove warnings and below
|
||||||
void removeWarningsAndBelow();
|
void removeWarningsAndBelow();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user