refs #562, allow to validate models

* GUI part
* allow to merge a list of messages into one
* validation function
This commit is contained in:
Klaus Basan
2015-12-20 16:29:32 +01:00
parent 459b935e3b
commit 3387caabdc
9 changed files with 142 additions and 1 deletions

View File

@@ -130,6 +130,18 @@ namespace BlackMisc
return patternNames;
}
void CStatusMessage::prependMessage(const QString &msg)
{
if (msg.isEmpty()) { return; }
this->m_message = msg + this->m_message;
}
void CStatusMessage::appendMessage(const QString &msg)
{
if (msg.isEmpty()) { return; }
this->m_message += msg;
}
void CStatusMessage::markAsHandledBy(const QObject *object) const
{
this->m_handledByObjects.push_back(quintptr(object));