fix PageDevMenu
This commit is contained in:
parent
b0fdbe6c4f
commit
32ef1eae84
1 changed files with 25 additions and 18 deletions
|
|
@ -16,32 +16,28 @@ import "../Components"
|
||||||
PageType {
|
PageType {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
ColumnLayout {
|
BackButtonType {
|
||||||
id: backButtonLayout
|
id: backButton
|
||||||
|
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
|
|
||||||
anchors.topMargin: 20
|
anchors.topMargin: 20
|
||||||
|
|
||||||
BackButtonType {
|
|
||||||
id: backButton
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
FlickableType {
|
ListView {
|
||||||
id: fl
|
id: listView
|
||||||
anchors.top: backButtonLayout.bottom
|
anchors.top: backButton.bottom
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
contentHeight: content.implicitHeight
|
anchors.right: parent.right
|
||||||
|
anchors.left: parent.left
|
||||||
|
|
||||||
ColumnLayout {
|
property bool isFocusable: true
|
||||||
id: content
|
|
||||||
|
|
||||||
anchors.top: parent.top
|
ScrollBar.vertical: ScrollBarType {}
|
||||||
anchors.left: parent.left
|
|
||||||
anchors.right: parent.right
|
header: ColumnLayout {
|
||||||
|
width: listView.width
|
||||||
|
|
||||||
HeaderType {
|
HeaderType {
|
||||||
id: header
|
id: header
|
||||||
|
|
@ -52,6 +48,14 @@ PageType {
|
||||||
|
|
||||||
headerText: "Dev menu"
|
headerText: "Dev menu"
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
model: 1
|
||||||
|
clip: true
|
||||||
|
spacing: 16
|
||||||
|
|
||||||
|
delegate: ColumnLayout {
|
||||||
|
width: listView.width
|
||||||
|
|
||||||
TextFieldWithHeaderType {
|
TextFieldWithHeaderType {
|
||||||
id: passwordTextField
|
id: passwordTextField
|
||||||
|
|
@ -60,7 +64,6 @@ PageType {
|
||||||
Layout.topMargin: 16
|
Layout.topMargin: 16
|
||||||
Layout.rightMargin: 16
|
Layout.rightMargin: 16
|
||||||
Layout.leftMargin: 16
|
Layout.leftMargin: 16
|
||||||
parentFlickable: fl
|
|
||||||
|
|
||||||
headerText: qsTr("Gateway endpoint")
|
headerText: qsTr("Gateway endpoint")
|
||||||
textFieldText: SettingsController.gatewayEndpoint
|
textFieldText: SettingsController.gatewayEndpoint
|
||||||
|
|
@ -78,14 +81,18 @@ PageType {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
footer: ColumnLayout {
|
||||||
|
width: listView.width
|
||||||
|
|
||||||
SwitcherType {
|
SwitcherType {
|
||||||
id: switcher
|
id: switcher
|
||||||
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
Layout.topMargin: 24
|
||||||
Layout.rightMargin: 16
|
Layout.rightMargin: 16
|
||||||
Layout.leftMargin: 16
|
Layout.leftMargin: 16
|
||||||
Layout.topMargin: 16
|
|
||||||
|
|
||||||
text: qsTr("Dev gateway environment")
|
text: qsTr("Dev gateway environment")
|
||||||
checked: SettingsController.isDevGatewayEnv
|
checked: SettingsController.isDevGatewayEnv
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue