tests/auto/declarative/qdeclarativeecmascript/data/enums.1.qml
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 04 Oct 2010 01:19:32 +0300
changeset 37 758a864f9613
parent 30 5dc02b23752f
permissions -rw-r--r--
Revision: 201037 Kit: 201039

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
}