1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
import QtQuick 2.0
Item {
id: focusscopeelementtest
anchors.fill: parent
property string testtext: ""
FocusScope {
id: firstfocusscopeelement
}
FocusScope {
id: secondfocusscopeelement
}
BugPanel { id: bugpanel }
SystemTestHelp { id: helpbubble; visible: statenum != 0
anchors { top: parent.top; horizontalCenter: parent.horizontalCenter; topMargin: 50 }
}
states: [
State { name: "start"; when: statenum == 1
PropertyChanges { target: focusscopeelementtest
testtext: "This test uses a FocusScope element. There should be two boxes, "+
"the first showing a red border to represent it having focus.\n"+
"Next, let's press a key to see which has focus." }
}
]
}
|