diff options
author | Matthew Vogt <matthew.vogt@nokia.com> | 2012-06-22 15:32:46 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-06-27 02:28:40 +0200 |
commit | a93c2608d69fa385c675a6b49e4d4bfb97f83ed2 (patch) | |
tree | 88b9bc5b459600d85c6519995367669396787568 /tests/auto/qml/qqmlecmascript/data/enums.3.qml | |
parent | a2aa4705702256c15aaaf64e08b90c4749233f9d (diff) |
Add enum values from related types
If moc marks a type as being related to another type (by using that
type's enums or properties), then include the enum values exported
by the related type in those exposed by the dependent type.
Task-number: QTBUG-22675
Change-Id: I78e72791a4f470200a9ba986a865ffac6c873725
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
Diffstat (limited to 'tests/auto/qml/qqmlecmascript/data/enums.3.qml')
-rw-r--r-- | tests/auto/qml/qqmlecmascript/data/enums.3.qml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlecmascript/data/enums.3.qml b/tests/auto/qml/qqmlecmascript/data/enums.3.qml index fd3432fc9f..aaa6a333b7 100644 --- a/tests/auto/qml/qqmlecmascript/data/enums.3.qml +++ b/tests/auto/qml/qqmlecmascript/data/enums.3.qml @@ -22,6 +22,9 @@ Item { // -1 enum property int j: MyQmlObject.EnumValue5 + // Enums from a related type + property int k: MyQmlObject.RelatedValue + // Count the onChanged signals to see whether // they're assigned as literals or via bindings property int ac: 0 @@ -33,6 +36,7 @@ Item { property int hc: 0 property int ic: 0 property int jc: 0 + property int kc: 0 onAChanged: ac++ onBChanged: bc++ @@ -43,4 +47,5 @@ Item { onHChanged: hc++ onIChanged: ic++ onJChanged: jc++ + onKChanged: kc++ } |