From ac68eb35e636c23bd0cb5293be5151163bb3a853 Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Thu, 15 Oct 2015 17:26:04 +0200 Subject: qmlplugindump: Don't try to import Qt.test.qtestroot Qt.test.qtestroot is only provided by quick_test_main so if we find any plugin that tries to inherit from TestCase.qml qmlplugindump will fail trying to import this unexistant import Change-Id: Idee881fa641267a17594dd3c92e929ca3473f3df Reviewed-by: Simon Hausmann Reviewed-by: Timo Jyrinki Reviewed-by: Eskil Abrahamsen Blomfeldt --- tools/qmlplugindump/main.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/qmlplugindump/main.cpp b/tools/qmlplugindump/main.cpp index 0f73afcc7b..aa2e8755e6 100644 --- a/tools/qmlplugindump/main.cpp +++ b/tools/qmlplugindump/main.cpp @@ -849,6 +849,14 @@ static bool getDependencies(const QQmlEngine &engine, const QString &pluginImpor std::cerr << "failed to proecess output of qmlimportscanner" << std::endl; return false; } + + QStringList aux; + foreach (const QString &str, *dependencies) { + if (!str.startsWith("Qt.test.qtestroot")) + aux += str; + } + *dependencies = aux; + return true; } -- cgit v1.2.3