summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml
diff options
context:
space:
mode:
authormae <qt-info@nokia.com>2010-04-12 11:38:32 (GMT)
committermae <qt-info@nokia.com>2010-04-12 11:38:32 (GMT)
commitdb25af420b394e35883dedcbfd28fd02a8a573bd (patch)
treeaf1f274c079c461683a3378c0182e3b3e068e6ab /src/declarative/qml
parent10389d48bc48f1adfe7c0ca2c042ed316202edd7 (diff)
downloadQt-db25af420b394e35883dedcbfd28fd02a8a573bd.zip
Qt-db25af420b394e35883dedcbfd28fd02a8a573bd.tar.gz
Qt-db25af420b394e35883dedcbfd28fd02a8a573bd.tar.bz2
More error output for QML_IMPORT_TRACE=1
Diffstat (limited to 'src/declarative/qml')
-rw-r--r--src/declarative/qml/qdeclarativeengine.cpp9
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;
}
}