diff options
author | mae <qt-info@nokia.com> | 2010-04-12 11:38:32 (GMT) |
---|---|---|
committer | mae <qt-info@nokia.com> | 2010-04-12 11:38:32 (GMT) |
commit | db25af420b394e35883dedcbfd28fd02a8a573bd (patch) | |
tree | af1f274c079c461683a3378c0182e3b3e068e6ab | |
parent | 10389d48bc48f1adfe7c0ca2c042ed316202edd7 (diff) | |
download | Qt-db25af420b394e35883dedcbfd28fd02a8a573bd.zip Qt-db25af420b394e35883dedcbfd28fd02a8a573bd.tar.gz Qt-db25af420b394e35883dedcbfd28fd02a8a573bd.tar.bz2 |
More error output for QML_IMPORT_TRACE=1
-rw-r--r-- | src/declarative/qml/qdeclarativeengine.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/declarative/qml/qdeclarativeengine.cpp b/src/declarative/qml/qdeclarativeengine.cpp index a3a43e6..f1adc16 100644 --- a/src/declarative/qml/qdeclarativeengine.cpp +++ b/src/declarative/qml/qdeclarativeengine.cpp @@ -1947,6 +1947,13 @@ bool QDeclarativeEngine::importPlugin(const QString &filePath, const QString &ur if (!engineInitialized || !typesRegistered) { QPluginLoader loader(absoluteFilePath); + if (!loader.load()) { + if (qmlImportTrace()) { + qDebug() << "QDeclarativeEngine::importPlugin: " << loader.errorString(); + } + return false; + } + if (QDeclarativeExtensionInterface *iface = qobject_cast<QDeclarativeExtensionInterface *>(loader.instance())) { const QByteArray bytes = uri.toUtf8(); @@ -1965,6 +1972,8 @@ bool QDeclarativeEngine::importPlugin(const QString &filePath, const QString &ur iface->initializeEngine(this, moduleId); } } else { + if (qmlImportTrace()) + qDebug() << "QDeclarativeEngine::importPlugin: no DeclarativeExtensionInterface error"; return false; } } |