qml: move label outside of server/proxy config component
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
@@ -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')
|
||||||
|
|||||||
@@ -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
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user