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

import Qt.test 1.0
import Qt 4.7

Item {
    id: item
    width: 100; height: 100
    MyRectangle.foo: 0

    states: State {
        name: "foo1"
        PropertyChanges {
            target: item
            MyRectangle.foo: 1
            width: 50
        }
    }

    Component.onCompleted: item.state = "foo1"
}