diff options
author | Lars Knoll <lars.knoll@digia.com> | 2013-11-18 14:23:36 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-11-18 14:43:13 +0100 |
commit | 3d145175fd50b3fe31c62348307c995717d4200d (patch) | |
tree | 8813cd27a1d413eab9356c5f029ad8e707505baf /tests/auto/qml/qqmlecmascript/data/updateCall.qml | |
parent | 965878e88a9211b6995d57fddccf22ed365a9772 (diff) |
Don't assert in QQuickItem::update
The method can actually be called from QML, so we can not
have an assert in that method. Instead simply return if the
item has no contents
Task-number: QTBUG-34060
Change-Id: Ib28ffa5c6c63fbec956abe25020010ed73a9cfa9
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
Diffstat (limited to 'tests/auto/qml/qqmlecmascript/data/updateCall.qml')
-rw-r--r-- | tests/auto/qml/qqmlecmascript/data/updateCall.qml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlecmascript/data/updateCall.qml b/tests/auto/qml/qqmlecmascript/data/updateCall.qml new file mode 100644 index 0000000000..341a360d25 --- /dev/null +++ b/tests/auto/qml/qqmlecmascript/data/updateCall.qml @@ -0,0 +1,10 @@ +import QtQuick 2.1
+
+Rectangle {
+ MouseArea {
+ anchors.fill: parent;
+ Component.onCompleted: {
+ update();
+ }
+ }
+}
|