From 813796b303af168045d43574321b48d82b41d48d Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Fri, 16 Oct 2020 09:31:38 +0200 Subject: QmlCompiler: Retrieve warnings from qmltypes parser Change-Id: I83292c9db42e39e52fbf20e92c036d789bbdb2d6 Reviewed-by: Fabian Kosmale --- src/qmlcompiler/qqmljsimporter.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/qmlcompiler/qqmljsimporter.cpp b/src/qmlcompiler/qqmljsimporter.cpp index 0f334eabd3..96df18937e 100644 --- a/src/qmlcompiler/qqmljsimporter.cpp +++ b/src/qmlcompiler/qqmljsimporter.cpp @@ -86,6 +86,10 @@ void QQmlJSImporter::readQmltypes( if (!succ) m_warnings.append({ reader.errorMessage(), QtCriticalMsg, QQmlJS::SourceLocation() }); + const QString warningMessage = reader.warningMessage(); + if (!warningMessage.isEmpty()) + m_warnings.append({ warningMessage, QtWarningMsg, QQmlJS::SourceLocation() }); + if (dependencyStrings.isEmpty()) return; -- cgit v1.2.3