aboutsummaryrefslogtreecommitdiffstats
path: root/tests/QtDeclarative/connect_python_qml.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/QtDeclarative/connect_python_qml.py')
-rw-r--r--tests/QtDeclarative/connect_python_qml.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/QtDeclarative/connect_python_qml.py b/tests/QtDeclarative/connect_python_qml.py
index e8180f782..669eec653 100644
--- a/tests/QtDeclarative/connect_python_qml.py
+++ b/tests/QtDeclarative/connect_python_qml.py
@@ -19,9 +19,9 @@ class TestConnectionWithInvalidSignature(TimedQApplication):
view.setSource(QtCore.QUrl.fromLocalFile(adjust_filename('connect_python_qml.qml', __file__)))
root = view.rootObject()
button = root.findChild(QtCore.QObject, "buttonMouseArea")
- self.assertRaises(TypeError, QtCore.QObject.connect, [button,QtCore.SIGNAL('clicked()'), self.onButtonFailClicked])
- button.clicked.connect(self.onButtonClicked)
- button.clicked.emit()
+ self.assertRaises(TypeError, QtCore.QObject.connect, [button,QtCore.SIGNAL('entered()'), self.onButtonFailClicked])
+ button.entered.connect(self.onButtonClicked)
+ button.entered.emit()
view.show()
self.app.exec_()
self.assert_(self.buttonClicked)