diff options
author | Robin Burchell <robin.burchell@viroteck.net> | 2015-02-08 15:21:55 +0100 |
---|---|---|
committer | Robin Burchell <robin.burchell@viroteck.net> | 2015-02-23 12:43:11 +0000 |
commit | 9fcae3df40335b97a50836ffb07a5ffbc4f40673 (patch) | |
tree | 83c5d04d771e7d61bf4dc56b2d899f95341ed01f /src/quick/items/qquickview.cpp | |
parent | c77d187b81dad91ba1d8fec35956a9822abe059e (diff) |
QQuickView/QQuickWidget: Improve diagnostics message for non-QQuickItem root fallback case.
We don't want to recommend qmlscene, and QtQuick1 is being deprecated, so
there's no need to spell it out anymore either.
Change-Id: Ia4b87d1a4b3afdae9ea9c13a89ac5cb78c85f06d
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
Diffstat (limited to 'src/quick/items/qquickview.cpp')
-rw-r--r-- | src/quick/items/qquickview.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/quick/items/qquickview.cpp b/src/quick/items/qquickview.cpp index 9bc512b80b..6582e3ad40 100644 --- a/src/quick/items/qquickview.cpp +++ b/src/quick/items/qquickview.cpp @@ -515,11 +515,8 @@ void QQuickViewPrivate::setRootObject(QObject *obj) } else { qWarning() << "QQuickView only supports loading of root objects that derive from QQuickItem." << endl << endl - << "If your example is using QML 2, (such as qmlscene) and the .qml file you" << endl - << "loaded has 'import QtQuick 1.0' or 'import Qt 4.7', this error will occur." << endl - << endl - << "To load files with 'import QtQuick 1.0' or 'import Qt 4.7', use the" << endl - << "QDeclarativeView class in the Qt Quick 1 module." << endl; + << "Ensure your QML code is written for QtQuick 2, and uses a root that is or" << endl + << "inherits from QtQuick's Item (not a Timer, QtObject, etc)." << endl; delete obj; root = 0; } |