mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +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()
|
||||
{
|
||||
if (this->isEmpty()) { return; }
|
||||
|
||||
@@ -88,6 +88,9 @@ namespace BlackMisc
|
||||
//! And higher (more critical) severity will be clipped to given severity
|
||||
void clampSeverity(CStatusMessage::StatusSeverity severity);
|
||||
|
||||
//! Sort by severity, lowest first
|
||||
void sortBySeverity();
|
||||
|
||||
//! Remove warnings and below
|
||||
void removeWarningsAndBelow();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user