mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 05:26:45 +08:00
refs #506, utility function for status message
This commit is contained in:
committed by
Mathew Sutcliffe
parent
deed61a88c
commit
24bf0b940f
@@ -219,14 +219,19 @@ namespace BlackMisc
|
||||
return true;
|
||||
}
|
||||
|
||||
bool CStatusMessage::isSeverityHigherOrEqual(CStatusMessage::StatusSeverity severity) const
|
||||
{
|
||||
return this->getSeverity() >= severity;
|
||||
}
|
||||
|
||||
bool CStatusMessage::isSuccess() const
|
||||
{
|
||||
return !isFailure();
|
||||
return !this->isFailure();
|
||||
}
|
||||
|
||||
bool CStatusMessage::isFailure() const
|
||||
{
|
||||
return getSeverity() == SeverityError;
|
||||
return this->getSeverity() == SeverityError;
|
||||
}
|
||||
|
||||
void CStatusMessage::prependMessage(const QString &msg)
|
||||
|
||||
Reference in New Issue
Block a user