aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlvaluetypes/data
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@theqtcompany.com>2015-01-07 11:51:37 +0100
committerSimon Hausmann <simon.hausmann@digia.com>2015-01-07 15:34:19 +0100
commit05fd01c14a7a4b26f366704fb0b0a4eddaceccf4 (patch)
tree583f404187502c83721db32e901bb8ed108ab51d /tests/auto/qml/qqmlvaluetypes/data
parent353e43cb6d73ee97ebff1a8c737b2c133b135ab8 (diff)
Fix property access and method invocation on value types that use inheritance
For gadgets/value types we use moc's static_metacall, which doesn't call the parent class implementation. Therefore before placing a static metacall we must resolve the indicies and find the right meta-object. Change-Id: I258e3d9ecfc704498c68772dc42b16134a3bfd83 Reviewed-by: Olivier Goffart <ogoffart@woboq.com> Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'tests/auto/qml/qqmlvaluetypes/data')
-rw-r--r--tests/auto/qml/qqmlvaluetypes/data/customvaluetype.qml3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlvaluetypes/data/customvaluetype.qml b/tests/auto/qml/qqmlvaluetypes/data/customvaluetype.qml
index 7ae73475c3..380eb55f54 100644
--- a/tests/auto/qml/qqmlvaluetypes/data/customvaluetype.qml
+++ b/tests/auto/qml/qqmlvaluetypes/data/customvaluetype.qml
@@ -5,4 +5,7 @@ TypeWithCustomValueType {
desk {
monitorCount: 3
}
+ derivedGadget {
+ baseProperty: 42
+ }
}