2023-07-17 10:49:06 +02:00
|
|
|
import QtQuick
|
|
|
|
|
import QtQuick.Layouts
|
|
|
|
|
import QtQuick.Controls
|
2022-12-30 22:21:22 +01:00
|
|
|
|
2022-07-21 16:01:31 +02:00
|
|
|
import "../controls"
|
2022-03-11 15:44:08 +01:00
|
|
|
|
|
|
|
|
WizardComponent {
|
|
|
|
|
valid: true
|
|
|
|
|
last: true
|
2023-12-11 15:17:45 +01:00
|
|
|
title: qsTr('Server')
|
2022-03-11 15:44:08 +01:00
|
|
|
|
2022-10-24 13:04:46 +02:00
|
|
|
function apply() {
|
2023-12-18 14:34:42 +01:00
|
|
|
wizard_data['autoconnect'] = sc.address.trim() == ""
|
2022-07-21 16:01:31 +02:00
|
|
|
wizard_data['server'] = sc.address
|
2022-03-11 15:44:08 +01:00
|
|
|
}
|
|
|
|
|
|
2022-12-30 22:21:22 +01:00
|
|
|
ColumnLayout {
|
2023-01-04 10:32:27 +01:00
|
|
|
anchors.fill: parent
|
2022-12-30 22:21:22 +01:00
|
|
|
spacing: constants.paddingLarge
|
|
|
|
|
|
|
|
|
|
ServerConfig {
|
|
|
|
|
id: sc
|
2023-10-03 18:56:15 +02:00
|
|
|
showAutoselectServer: false
|
|
|
|
|
Layout.fillWidth: true
|
2023-01-04 10:32:27 +01:00
|
|
|
Layout.fillHeight: true
|
2022-12-30 22:21:22 +01:00
|
|
|
}
|
2022-03-11 15:44:08 +01:00
|
|
|
}
|
|
|
|
|
}
|