1
0

qml: move label outside of server/proxy config component

This commit is contained in:
Sander van Grieken
2022-12-30 22:21:22 +01:00
parent 90d64a004b
commit e6e3fd7083
4 changed files with 31 additions and 13 deletions

View File

@@ -38,10 +38,6 @@ Item {
width: parent.width width: parent.width
spacing: constants.paddingLarge spacing: constants.paddingLarge
Label {
text: qsTr('Proxy settings')
}
CheckBox { CheckBox {
id: proxy_enabled_cb id: proxy_enabled_cb
text: qsTr('Enable Proxy') text: qsTr('Enable Proxy')
@@ -60,7 +56,7 @@ Item {
} }
GridLayout { GridLayout {
columns: 4 columns: 2
Layout.fillWidth: true Layout.fillWidth: true
Label { Label {

View File

@@ -14,10 +14,6 @@ Item {
width: parent.width width: parent.width
spacing: constants.paddingLarge spacing: constants.paddingLarge
Label {
text: qsTr('Server settings')
}
CheckBox { CheckBox {
id: auto_server_cb id: auto_server_cb
text: qsTr('Select server automatically') text: qsTr('Select server automatically')

View File

@@ -1,3 +1,7 @@
import QtQuick 2.6
import QtQuick.Layouts 1.0
import QtQuick.Controls 2.1
import "../controls" import "../controls"
WizardComponent { WizardComponent {
@@ -7,8 +11,17 @@ WizardComponent {
wizard_data['proxy'] = pc.toProxyDict() wizard_data['proxy'] = pc.toProxyDict()
} }
ProxyConfig { ColumnLayout {
id: pc
width: parent.width width: parent.width
spacing: constants.paddingLarge
Label {
text: qsTr('Proxy settings')
}
ProxyConfig {
id: pc
width: parent.width
}
} }
} }

View File

@@ -1,3 +1,7 @@
import QtQuick 2.6
import QtQuick.Layouts 1.0
import QtQuick.Controls 2.1
import "../controls" import "../controls"
WizardComponent { WizardComponent {
@@ -9,8 +13,17 @@ WizardComponent {
wizard_data['server'] = sc.address wizard_data['server'] = sc.address
} }
ServerConfig { ColumnLayout {
id: sc
width: parent.width width: parent.width
spacing: constants.paddingLarge
Label {
text: qsTr('Server settings')
}
ServerConfig {
id: sc
width: parent.width
}
} }
} }