diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2010-12-28 14:50:46 -0200 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:48:05 -0300 |
commit | 92b893c53242a191b76291f8fb0ce68fd284c115 (patch) | |
tree | 4a8e4e5da01122dc1e48e4a6aeb72c3fccbde7a5 /tests/QtDeclarative/connect_python_qml.py | |
parent | 6d18229268b42db54824cc277e339bac34ad3404 (diff) |
Fix bug#563 - "Unhandled signal emitting with invalid signature (which leads to application crash)"
Diffstat (limited to 'tests/QtDeclarative/connect_python_qml.py')
-rw-r--r-- | tests/QtDeclarative/connect_python_qml.py | 6 |
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) |