diff options
author | Martin Jones <martin.jones@nokia.com> | 2009-11-13 08:01:23 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2009-11-13 08:01:23 (GMT) |
commit | b315f5ac9ae996f8e1caab314236cea7baa25ae0 (patch) | |
tree | ee0b99c1c5fd1d2121e6dc94f89d4fc790968cc6 /tests/auto/declarative/visual/qmlmouseregion/mouseregion.qml | |
parent | 20fb6a8292583f2cdaa171b59b8e8739ca1f8705 (diff) | |
download | Qt-b315f5ac9ae996f8e1caab314236cea7baa25ae0.zip Qt-b315f5ac9ae996f8e1caab314236cea7baa25ae0.tar.gz Qt-b315f5ac9ae996f8e1caab314236cea7baa25ae0.tar.bz2 |
Test MouseRegion.enabled
Diffstat (limited to 'tests/auto/declarative/visual/qmlmouseregion/mouseregion.qml')
-rw-r--r-- | tests/auto/declarative/visual/qmlmouseregion/mouseregion.qml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/auto/declarative/visual/qmlmouseregion/mouseregion.qml b/tests/auto/declarative/visual/qmlmouseregion/mouseregion.qml index 3bd1812..ab4223d 100644 --- a/tests/auto/declarative/visual/qmlmouseregion/mouseregion.qml +++ b/tests/auto/declarative/visual/qmlmouseregion/mouseregion.qml @@ -104,4 +104,21 @@ Rectangle { } } } + + // click, then double click me - nothing should happen + Rectangle { + x: 100 + y: 50 + width: 98; height: 48 + color: "red" + MouseRegion { + id: mr7 + anchors.fill: parent + enabled: false + onClicked: { parent.color = "blue" } + onPressed: { parent.color = "yellow" } + onReleased: { parent.color = "cyan" } + onDoubleClicked: { parent.color = "green" } + } + } } |