diff options
author | Shawn Rutledge <shawn.rutledge@digia.com> | 2012-11-05 11:04:21 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-11-05 18:09:26 +0100 |
commit | a3220e460bdcb9bc878bfe37721a7798ac8c2d64 (patch) | |
tree | d7549624410ebde94c920314c4d5d80f3dbef0d8 /tests/auto/qml/debugger/qqmlinspector/data/window.qml | |
parent | 0b019fcc52560d0a7016f733cb2bea3e03893ec0 (diff) |
qmlscene can start with either an Item or Window as the qml root
Before, it assumed that the root is an Item and needs to have a
Window created. But it's useful for an application to have a Window
as the root, and it was already possible by writing a different C++
main function (see qtdeclarative/examples/window/window/window.cpp).
It doesn't take much to give qmlscene this flexibility too.
Change-Id: Ie808e78a42074e13aa9d3c87723ec9ac8fdbaf4a
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
Diffstat (limited to 'tests/auto/qml/debugger/qqmlinspector/data/window.qml')
-rw-r--r-- | tests/auto/qml/debugger/qqmlinspector/data/window.qml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/auto/qml/debugger/qqmlinspector/data/window.qml b/tests/auto/qml/debugger/qqmlinspector/data/window.qml new file mode 100644 index 0000000000..29eaced121 --- /dev/null +++ b/tests/auto/qml/debugger/qqmlinspector/data/window.qml @@ -0,0 +1,7 @@ +import QtQuick 2.0 +import QtQuick.Window 2.0 + +Window { + height: 100 + width: 100 +} |