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

import Qt 4.7

Rectangle {
    width: 200
    height: 200

    FocusScope {
        focus: true
        Rectangle {
            objectName: "item1"
            color: "blue"
            onFocusChanged: focus ? color = "red" : color = "blue"
        }
        Rectangle {
            objectName: "item2"
            color: "blue"
            onFocusChanged: focus ? color = "red" : color = "blue"
        }
    }

    FocusScope {
        Rectangle {
            objectName: "item3"
            color: "blue"
            onFocusChanged: focus ? color = "red" : color = "blue"
        }
        Rectangle {
            objectName: "item4"
            color: "blue"
            onFocusChanged: focus ? color = "red" : color = "blue"
        }
    }
}