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

import Qt 4.7

Rectangle {
    id: root
    width:300; height:400

    property bool focus1: root.activeFocus
    property bool focus2: item1.activeFocus
    property bool focus3: fs1.activeFocus
    property bool focus4: fs2.activeFocus
    property bool focus5: theItem.activeFocus

    Item {
        id: item1
        FocusScope {
            id: fs1
            focus: true
            FocusScope {
                id: fs2
                focus: true
                Item {
                    id: theItem
                    focus: true
                }
            }
        }
    }
}