aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmlcompiler/qcoloroutput_p.h
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2021-11-18 14:26:29 +0100
committerUlf Hermann <ulf.hermann@qt.io>2021-11-29 23:12:45 +0100
commite551331f380696ddae511447908b7536761babe0 (patch)
tree2493d3023d9a00a0ea5347e575b2519976b770c5 /src/qmlcompiler/qcoloroutput_p.h
parentadc490936b66873b072835b315c4d0741230b8b2 (diff)
Add a default implementation for QQmlJSAotCompiler
The default AOT compiler compiles QML code in indirect, dynamic mode. It uses the logger's Log_Compiler category to determine the verbosity of its output. In addition you can use the qt.qml.compiler.aot category for even more verbosity. In preparation for using QQmlJSAotCompiler with qmlcachegen, the default level of that category is increased to QtFatalMsg. The highest level we actually output is QtDebugMsg, so it doesn't make a difference yet. If the logger's Log_Compiler category is set to produce errors, it will qFatal() on "pragma Strict" violations. Change-Id: Ieb74bfa7cd51cfa8616792ab467c32f6ba0e0702 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qmlcompiler/qcoloroutput_p.h')
-rw-r--r--src/qmlcompiler/qcoloroutput_p.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/qmlcompiler/qcoloroutput_p.h b/src/qmlcompiler/qcoloroutput_p.h
index 361cf547f7..724a5acd4e 100644
--- a/src/qmlcompiler/qcoloroutput_p.h
+++ b/src/qmlcompiler/qcoloroutput_p.h
@@ -91,9 +91,12 @@ public:
using ColorCode = QFlags<ColorCodeComponent>;
using ColorMapping = QHash<int, ColorCode>;
- QColorOutput(bool silent);
+ QColorOutput();
~QColorOutput();
+ bool isSilent() const;
+ void setSilent(bool silent);
+
void insertMapping(int colorID, ColorCode colorCode);
void writeUncolored(const QString &message);