tests/auto/declarative/qdeclarativeecmascript/data/enums.1.qml
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 02 Sep 2010 21:20:32 +0300
changeset 34 a33bf25e6f72
parent 30 5dc02b23752f
permissions -rw-r--r--
Revision: 201033 Kit: 201035

import Qt.test 1.0
import Qt.test 1.0 as Namespace

MyQmlObject {
    // Enums from non-namespaced type
    property int a: MyQmlObject.EnumValue1
    property int b: MyQmlObject.EnumValue2
    property int c: MyQmlObject.EnumValue3
    property int d: MyQmlObject.EnumValue4

    // Enums from namespaced type
    property int e: Namespace.MyQmlObject.EnumValue1
    property int f: Namespace.MyQmlObject.EnumValue2
    property int g: Namespace.MyQmlObject.EnumValue3
    property int h: Namespace.MyQmlObject.EnumValue4

    // Test that enums don't mask attached properties
    property int i: MyQmlObject.value
    property int j: Namespace.MyQmlObject.value
}