aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickbehaviors/data/ItemWithInnerBehavior.qml
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@qt.io>2017-09-22 15:01:27 +0200
committerSimon Hausmann <simon.hausmann@qt.io>2017-09-22 13:31:02 +0000
commitf17b826a72d77379288aa84a933b9231c279cbad (patch)
treef1e95ca5d2ad6ccc28dc6caf040d740bb2e26b13 /tests/auto/quick/qquickbehaviors/data/ItemWithInnerBehavior.qml
parent163c515783877b8b0ffb8b5c1bab288addee9745 (diff)
Fix behaviors not working when sub-types declare properties
Since commit 81867dfbf9c16d4300727a08eed9b5c6c979e0ba we have an optimization in place to avoid the virtual meta-call when writing properties that cannot be intercepted. Unfortunately that check did not take parent VME meta-objects into account, which triggered the bug. Test case by Harald Hvaal <hhvaal@cisco.com> Task-number: QTBUG-63365 Change-Id: I66cb2967da2c09ca5e38cebd9db2ee6e3ee78f5f Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
Diffstat (limited to 'tests/auto/quick/qquickbehaviors/data/ItemWithInnerBehavior.qml')
-rw-r--r--tests/auto/quick/qquickbehaviors/data/ItemWithInnerBehavior.qml10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickbehaviors/data/ItemWithInnerBehavior.qml b/tests/auto/quick/qquickbehaviors/data/ItemWithInnerBehavior.qml
new file mode 100644
index 0000000000..09983645ef
--- /dev/null
+++ b/tests/auto/quick/qquickbehaviors/data/ItemWithInnerBehavior.qml
@@ -0,0 +1,10 @@
+import QtQuick 2.4
+
+Item {
+ id: root
+
+ property bool someValue
+ Behavior on someValue {
+ ScriptAction { script: { parent.behaviorTriggered = true }}
+ }
+}