aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2020-07-23 14:52:00 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2020-07-23 15:07:42 +0200
commitb429d2a06bf5acb4b44cd0c7bd599c6d4cc7ebae (patch)
treed1175aa45a3862bda154214081808ad68fcce57c
parentcacfabc03198b1bcd314d4ebdb0b7e06dfe097ff (diff)
Test signal_arguments.py: Use Qt Quick Controls 2
Qt Quick Controls 1 is deprecated and has been removed in Qt 6. Task-number: PYSIDE-1339 Task-number: PYSIDE-904 Change-Id: If70fde907c3984b0593186a9b570a921f270d45c Reviewed-by: Christian Tismer <tismer@stackless.com>
-rw-r--r--sources/pyside2/tests/QtQml/signal_arguments.py1
-rw-r--r--sources/pyside2/tests/QtQml/signal_arguments.qml4
2 files changed, 3 insertions, 2 deletions
diff --git a/sources/pyside2/tests/QtQml/signal_arguments.py b/sources/pyside2/tests/QtQml/signal_arguments.py
index 98b52c05c..16257a22f 100644
--- a/sources/pyside2/tests/QtQml/signal_arguments.py
+++ b/sources/pyside2/tests/QtQml/signal_arguments.py
@@ -68,6 +68,7 @@ class TestConnectionWithQml(TimedQApplication):
root = view.rootObject()
self.assertTrue(root)
button = root.findChild(QObject, "button")
+ self.assertTrue(button)
view.show()
button.clicked.emit()
self.assertEqual(obj.value, 42)
diff --git a/sources/pyside2/tests/QtQml/signal_arguments.qml b/sources/pyside2/tests/QtQml/signal_arguments.qml
index 0c65b947f..73a1715fa 100644
--- a/sources/pyside2/tests/QtQml/signal_arguments.qml
+++ b/sources/pyside2/tests/QtQml/signal_arguments.qml
@@ -28,14 +28,14 @@
import QtQuick 2.5
-import QtQuick.Controls 1.4
+import QtQuick.Controls 2.12
import QtQuick.Layouts 1.2
Rectangle {
visible: true
GridLayout {
Button {
- id: "button"
+ id: button
objectName: "button"
text: "sum!"
onClicked: {