aboutsummaryrefslogtreecommitdiffstats
path: root/tests/QtDeclarative/connect_python_qml.qml
diff options
context:
space:
mode:
authorrenatofilho <renato.filho@openbossa.org>2010-10-28 16:28:43 -0300
committerrenatofilho <renato.filho@openbossa.org>2010-10-28 17:40:12 -0300
commitbd8239b1cd99d25c26eb99a051072254342ab0bb (patch)
tree12fce76bd9206473ead1600e05d5591619f98393 /tests/QtDeclarative/connect_python_qml.qml
parenta1524b78b632d99aa6076391d0d77e46271dd7c8 (diff)
Stop signal/slot connection if is impossible to register that on object.
Created unit test for bug #442, #437. Fixes bug #442. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'tests/QtDeclarative/connect_python_qml.qml')
-rw-r--r--tests/QtDeclarative/connect_python_qml.qml20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/QtDeclarative/connect_python_qml.qml b/tests/QtDeclarative/connect_python_qml.qml
new file mode 100644
index 000000000..dbf890f6f
--- /dev/null
+++ b/tests/QtDeclarative/connect_python_qml.qml
@@ -0,0 +1,20 @@
+import Qt 4.7
+
+Rectangle {
+ id: page
+ width: 500; height: 200
+ color: "lightgray"
+
+ Rectangle {
+ id: button
+ width: 150; height: 40
+ color: "darkgray"
+ anchors.horizontalCenter: page.horizontalCenter
+ y: 150
+ MouseArea {
+ id: buttonMouseArea
+ objectName: "buttonMouseArea"
+ anchors.fill: parent
+ }
+ }
+}