make minor fixes and clean up
This commit is contained in:
parent
ea39447708
commit
882c288d92
7 changed files with 5 additions and 65 deletions
|
|
@ -90,6 +90,7 @@ DrawerType2 {
|
||||||
model: 1
|
model: 1
|
||||||
|
|
||||||
clip: true
|
clip: true
|
||||||
|
reuseItems: true
|
||||||
|
|
||||||
header: ColumnLayout {
|
header: ColumnLayout {
|
||||||
width: listView.width
|
width: listView.width
|
||||||
|
|
|
||||||
|
|
@ -176,7 +176,7 @@ Button {
|
||||||
ButtonTextType {
|
ButtonTextType {
|
||||||
id: buttonText
|
id: buttonText
|
||||||
|
|
||||||
color: textColor
|
color: root.textColor
|
||||||
text: root.text
|
text: root.text
|
||||||
visible: root.text === "" ? false : true
|
visible: root.text === "" ? false : true
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -225,11 +225,6 @@ Item {
|
||||||
id: backButton
|
id: backButton
|
||||||
backButtonImage: root.headerBackButtonImage
|
backButtonImage: root.headerBackButtonImage
|
||||||
backButtonFunction: function() { menu.closeTriggered() }
|
backButtonFunction: function() { menu.closeTriggered() }
|
||||||
onActiveFocusChanged: {
|
|
||||||
if(backButton.enabled && backButton.activeFocus) {
|
|
||||||
root.listView.positionViewAtBeginning()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -142,13 +142,6 @@ PageType {
|
||||||
drawer.expandedHeight = implicitHeight
|
drawer.expandedHeight = implicitHeight
|
||||||
}
|
}
|
||||||
|
|
||||||
Connections {
|
|
||||||
objectName: "drawerConnections"
|
|
||||||
|
|
||||||
target: drawer
|
|
||||||
enabled: !GC.isMobile()
|
|
||||||
}
|
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
id: collapsed
|
id: collapsed
|
||||||
objectName: "collapsedColumnLayout"
|
objectName: "collapsedColumnLayout"
|
||||||
|
|
@ -298,16 +291,6 @@ PageType {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Connections {
|
|
||||||
target: drawer
|
|
||||||
enabled: !GC.isMobile()
|
|
||||||
function onIsCollapsedChanged() {
|
|
||||||
if (!drawer.isCollapsed) {
|
|
||||||
focusItem1.forceActiveFocus()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
id: serversMenuHeader
|
id: serversMenuHeader
|
||||||
objectName: "serversMenuHeader"
|
objectName: "serversMenuHeader"
|
||||||
|
|
|
||||||
|
|
@ -240,7 +240,6 @@ PageType {
|
||||||
id: underloadPacketMagicHeaderTextField
|
id: underloadPacketMagicHeaderTextField
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.topMargin: 16
|
Layout.topMargin: 16
|
||||||
parentFlickable: fl
|
|
||||||
|
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -87,6 +87,8 @@ PageType {
|
||||||
property int containerDefaultPort
|
property int containerDefaultPort
|
||||||
property int containerDefaultTransportProto
|
property int containerDefaultTransportProto
|
||||||
|
|
||||||
|
property bool isFocusable: true
|
||||||
|
|
||||||
delegate: Item {
|
delegate: Item {
|
||||||
implicitWidth: containers.width
|
implicitWidth: containers.width
|
||||||
implicitHeight: delegateContent.implicitHeight
|
implicitHeight: delegateContent.implicitHeight
|
||||||
|
|
|
||||||
|
|
@ -182,15 +182,6 @@ PageType {
|
||||||
shareFullAccessDrawer.openTriggered()
|
shareFullAccessDrawer.openTriggered()
|
||||||
}
|
}
|
||||||
|
|
||||||
actionButton.onFocusChanged: {
|
|
||||||
console.debug("MOVE THIS LOGIC TO CPP!")
|
|
||||||
if (actionButton.activeFocus) {
|
|
||||||
if (fl) {
|
|
||||||
fl.ensureVisible(moreButton)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
DrawerType2 {
|
DrawerType2 {
|
||||||
id: shareFullAccessDrawer
|
id: shareFullAccessDrawer
|
||||||
|
|
||||||
|
|
@ -677,38 +668,7 @@ PageType {
|
||||||
}
|
}
|
||||||
|
|
||||||
clip: true
|
clip: true
|
||||||
// interactive: false
|
reuseItems: true
|
||||||
|
|
||||||
// activeFocusOnTab: true
|
|
||||||
// focus: true
|
|
||||||
// Keys.onTabPressed: {
|
|
||||||
// if (!GC.isMobile()) {
|
|
||||||
// if (currentIndex < this.count - 1) {
|
|
||||||
// this.incrementCurrentIndex()
|
|
||||||
// // currentItem.focusItem.forceActiveFocus()
|
|
||||||
// } else {
|
|
||||||
// this.currentIndex = 0
|
|
||||||
// // lastItemTabClicked(focusItem)
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
// onActiveFocusChanged: {
|
|
||||||
// if (focus && !GC.isMobile()) {
|
|
||||||
// currentIndex = 0
|
|
||||||
// // currentItem.focusItem.forceActiveFocus()
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
// onCurrentIndexChanged: {
|
|
||||||
// if (currentItem) {
|
|
||||||
// if (currentItem.y < a.contentY) {
|
|
||||||
// a.contentY = currentItem.y
|
|
||||||
// } else if (currentItem.y + currentItem.height + clientsListView.y > a.contentY + a.height) {
|
|
||||||
// a.contentY = currentItem.y + clientsListView.y + currentItem.height - a.height
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
delegate: Item {
|
delegate: Item {
|
||||||
implicitWidth: clientsListView.width
|
implicitWidth: clientsListView.width
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue