diff options
author | Simon Hausmann <simon.hausmann@theqtcompany.com> | 2015-09-02 17:19:03 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@theqtcompany.com> | 2015-09-02 17:19:48 +0200 |
commit | 149ece7a0cfb4fc90fe4544379ee2772fde881fd (patch) | |
tree | 6a8a3ec11beb53eb06ccc69a0ec04a9d80053c0e /tools/qmlplugindump/main.cpp | |
parent | 9ee31a6ae852eb347951e371958dd435409c9941 (diff) | |
parent | d1b20513798ed441afddb87fd4e7facce78349e1 (diff) | |
download | qtdeclarative-149ece7a0cfb4fc90fe4544379ee2772fde881fd.tar.gz qtdeclarative-149ece7a0cfb4fc90fe4544379ee2772fde881fd.tar.bz2 qtdeclarative-149ece7a0cfb4fc90fe4544379ee2772fde881fd.zip |
Merge remote-tracking branch 'origin/5.5' into 5.6
Change-Id: Ibc7a47f7ce6d15dff79fdc59f8ded297d1b8d50d
Diffstat (limited to 'tools/qmlplugindump/main.cpp')
-rw-r--r-- | tools/qmlplugindump/main.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/qmlplugindump/main.cpp b/tools/qmlplugindump/main.cpp index c7539ac87..911328c12 100644 --- a/tools/qmlplugindump/main.cpp +++ b/tools/qmlplugindump/main.cpp @@ -461,6 +461,12 @@ public: void dumpComposite(QQmlEngine *engine, const QQmlType *compositeType, QSet<QByteArray> &defaultReachableNames) { QQmlComponent e(engine, compositeType->sourceUrl()); + if (!e.isReady()) { + std::cerr << "WARNING: skipping module " << compositeType->elementName().toStdString() + << std::endl << e.errorString().toStdString() << std::endl; + return; + } + QObject *object = e.create(); if (!object) @@ -901,6 +907,7 @@ void printDebugMessage(QtMsgType, const QMessageLogContext &, const QString &msg // In case of QtFatalMsg the calling code will abort() when appropriate. } + int main(int argc, char *argv[]) { #if defined(Q_OS_WIN) && !defined(Q_CC_MINGW) @@ -1041,6 +1048,7 @@ int main(int argc, char *argv[]) if (calculateDependencies) getDependencies(engine, pluginImportUri, pluginImportVersion, &dependencies); compactDependencies(&dependencies); + // load the QtQml 2.2 builtins and the dependencies { QByteArray code("import QtQml 2.2"); |