22 for (
const auto& message : messages)
24 result.push_back(message.first +
": " + message.second);
26 result.push_back(message.second);
33 m_errors.append(qMakePair(sender->objectName(), description));
38 m_warnings.append(qMakePair(sender->objectName(), description));
Defines MessageService class.
QStringList descriptions(const Messages &messages, bool includeSenders) const
QList< QPair< QString, QString > > Messages
QStringList errors(bool includeSenders=false) const
QStringList warnings(bool includeSenders=false) const
void addWarning(QObject *sender, const QString &description)
void addError(QObject *sender, const QString &description)