add focus navigation to qml
This commit is contained in:
parent
cecee3769e
commit
01e31b4b4d
23 changed files with 103 additions and 196 deletions
|
|
@ -52,25 +52,13 @@ PageType {
|
|||
|
||||
height: 500 // servers.contentItem.height // TODO: calculate height
|
||||
|
||||
property bool isFocusable: true
|
||||
|
||||
model: ServersModel
|
||||
|
||||
clip: true
|
||||
interactive: false
|
||||
|
||||
// activeFocusOnTab: true
|
||||
// focus: true
|
||||
// Keys.onTabPressed: {
|
||||
// if (currentIndex < servers.count - 1) {
|
||||
// servers.incrementCurrentIndex()
|
||||
// } else {
|
||||
// servers.currentIndex = 0
|
||||
// focusItem.forceActiveFocus()
|
||||
// root.lastItemTabClicked()
|
||||
// }
|
||||
|
||||
// fl.ensureVisible(this.currentItem)
|
||||
// }
|
||||
|
||||
onVisibleChanged: {
|
||||
if (visible) {
|
||||
currentIndex = 0
|
||||
|
|
@ -81,12 +69,6 @@ PageType {
|
|||
implicitWidth: servers.width
|
||||
implicitHeight: delegateContent.implicitHeight
|
||||
|
||||
// onFocusChanged: {
|
||||
// if (focus) {
|
||||
// server.rightButton.forceActiveFocus()
|
||||
// }
|
||||
// }
|
||||
|
||||
ColumnLayout {
|
||||
id: delegateContent
|
||||
|
||||
|
|
@ -99,7 +81,7 @@ PageType {
|
|||
Layout.fillWidth: true
|
||||
|
||||
text: name
|
||||
// parentFlickable: fl
|
||||
|
||||
descriptionText: {
|
||||
var servicesNameString = ""
|
||||
var servicesName = ServersModel.getAllInstalledServicesName(index)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue