From 64c1fbe96c68b1286a70242ff4922be140128cb2 Mon Sep 17 00:00:00 2001 From: Fabian Kosmale Date: Tue, 2 Jul 2019 13:23:09 +0200 Subject: use boolean for when property QQuickState used to store "when" as a QQmlBinding to reduce state oscillation. It is unclear whether this is still an issue, but it breaks if a user sets "when" to a primitive value like "true" or "1". Fixes: QTBUG-76838 Change-Id: If400e5b1283687838ed252be2dfa52067f44564e Reviewed-by: Ulf Hermann --- tests/auto/quick/qquickstates/data/trivialWhen.qml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 tests/auto/quick/qquickstates/data/trivialWhen.qml (limited to 'tests/auto/quick/qquickstates/data/trivialWhen.qml') diff --git a/tests/auto/quick/qquickstates/data/trivialWhen.qml b/tests/auto/quick/qquickstates/data/trivialWhen.qml new file mode 100644 index 0000000000..9f7f3161e9 --- /dev/null +++ b/tests/auto/quick/qquickstates/data/trivialWhen.qml @@ -0,0 +1,5 @@ +import QtQuick 2.12 + +State { + when: true +} -- cgit v1.2.3