Status message without tabs/CR

This commit is contained in:
Klaus Basan
2018-10-28 00:42:27 +02:00
parent fd94772094
commit b0814726d8
3 changed files with 29 additions and 4 deletions

View File

@@ -182,6 +182,7 @@ namespace BlackMisc
IndexSeverity,
IndexSeverityAsString,
IndexMessage,
IndexMessageNoLineBreaks,
IndexMessageAsHtml
};
@@ -271,6 +272,9 @@ namespace BlackMisc
//! Message
QString getMessage() const { return this->message(); }
//! Message without line breaks
QString getMessageNoLineBreaks() const;
//! Prepend message
void prependMessage(const QString &msg);
@@ -336,15 +340,15 @@ namespace BlackMisc
//! \copydoc BlackMisc::Mixin::Index::setPropertyByIndex
void setPropertyByIndex(const BlackMisc::CPropertyIndex &index, const CVariant &variant);
//! Compare for index
//! \copydoc BlackMisc::Mixin::Index::comparePropertyByIndex
int comparePropertyByIndex(const CPropertyIndex &index, const CStatusMessage &compareValue) const;
//! To HTML
QString toHtml() const;
//! \copydoc BlackMisc::Mixin::String::toQString
QString convertToQString(bool i18n = false) const;
//! To HTML
QString toHtml() const;
//! Representing icon
static const CIcon &convertToIcon(const CStatusMessage &statusMessage);