diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2020-10-06 12:52:42 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2020-10-07 10:42:36 +0200 |
commit | e7e04656696d144e57c9bec1b6ca7d30d237ee70 (patch) | |
tree | 6187a6f8f0701ba39179b668817d7111d679afd5 /tools/qmllint/qcoloroutput.h | |
parent | d2c9ecc727688d2519489e4b08013bfde8b0ae1e (diff) |
qmllint: Capitalize importer warnings
Refactor the "prefixed message" mechanism into ColorOutput.
Change-Id: Ie982e641771f3367406f48a8bcfd2bd3da122b16
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tools/qmllint/qcoloroutput.h')
-rw-r--r-- | tools/qmllint/qcoloroutput.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/qmllint/qcoloroutput.h b/tools/qmllint/qcoloroutput.h index 6a1acfe8b5..41b8751432 100644 --- a/tools/qmllint/qcoloroutput.h +++ b/tools/qmllint/qcoloroutput.h @@ -41,6 +41,7 @@ #include <QtCore/qglobal.h> #include <QtCore/qscopedpointer.h> +#include <QtCore/qstring.h> class ColorOutputPrivate; @@ -104,6 +105,8 @@ public: void writeUncolored(const QString &message); void write(const QString &message, int color = -1); + void writePrefixedMessage(const QString &message, MessageColors type, + const QString &prefix = QString()); QString colorify(const QString &message, int color = -1) const; private: |