mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 21:15:33 +08:00
Ref T659, some utility functions and style adjustments for login dialog
This commit is contained in:
committed by
Mat Sutcliffe
parent
7cfd4b390a
commit
1e5ef15e40
@@ -100,6 +100,13 @@ namespace BlackMisc
|
||||
}
|
||||
}
|
||||
|
||||
void CStatusMessageList::addValidationMessage(const QString &validationText, CStatusMessage::StatusSeverity severity)
|
||||
{
|
||||
static const CLogCategoryList cats({ CLogCategory::validation() });
|
||||
const CStatusMessage msg(cats, severity, validationText);
|
||||
this->push_back(msg);
|
||||
}
|
||||
|
||||
void CStatusMessageList::setCategory(const CLogCategory &category)
|
||||
{
|
||||
for (auto &msg : *this)
|
||||
|
||||
@@ -84,6 +84,9 @@ namespace BlackMisc
|
||||
//! Add some categories to all messages in the list
|
||||
void addCategories(const CLogCategoryList &categories);
|
||||
|
||||
//! Convenience function to push back a validation message
|
||||
void addValidationMessage(const QString &validationText, CStatusMessage::StatusSeverity severity);
|
||||
|
||||
//! Reset the category of all messages in the list
|
||||
void setCategory(const CLogCategory &category);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user