aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlpropertycache/data
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2019-02-12 15:22:19 +0100
committerUlf Hermann <ulf.hermann@qt.io>2019-02-14 08:01:37 +0000
commit9343fbc478e42c7aec3247486b25b34f1908e93b (patch)
tree680dc82535c9cf6efaa8657cb7c9a7110038dbfc /tests/auto/qml/qqmlpropertycache/data
parentdbc811e164019b5f9ce371cb7b49d695644f6a90 (diff)
PropertCache: Don't pass Q_GADGET value types as integers
We need to check for the IsGadget flag there. Fixes: QTBUG-73734 Change-Id: Ic4afd4215e6ed346bc40794d85397f0f262715e2 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tests/auto/qml/qqmlpropertycache/data')
-rw-r--r--tests/auto/qml/qqmlpropertycache/data/passQGadget.qml12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlpropertycache/data/passQGadget.qml b/tests/auto/qml/qqmlpropertycache/data/passQGadget.qml
new file mode 100644
index 0000000000..86fdd920ed
--- /dev/null
+++ b/tests/auto/qml/qqmlpropertycache/data/passQGadget.qml
@@ -0,0 +1,12 @@
+import QtQml 2.2
+
+QtObject {
+ property var result;
+
+ property Connections connections: Connections {
+ target: emitter
+ onEmitGadget: function(gadget) {
+ result = gadget.someProperty;
+ }
+ }
+}