Files
purple-electrumwallet/electrum/gui/qml/components/controls/ServerConfig.qml
T

44 lines
906 B
QML
Raw Normal View History

import QtQuick 2.6
import QtQuick.Layouts 1.0
import QtQuick.Controls 2.1
Item {
property alias auto_server: auto_server_cb.checked
property alias address: address_tf.text
2022-08-24 16:01:50 +02:00
height: rootLayout.height
ColumnLayout {
2022-08-24 16:01:50 +02:00
id: rootLayout
width: parent.width
2022-08-24 16:01:50 +02:00
spacing: constants.paddingLarge
Label {
text: qsTr('Server settings')
}
CheckBox {
id: auto_server_cb
text: qsTr('Select server automatically')
checked: true
}
GridLayout {
columns: 2
Layout.fillWidth: true
Label {
text: qsTr("Server")
enabled: address_tf.enabled
}
TextField {
id: address_tf
enabled: !auto_server_cb.checked
2022-08-24 16:01:50 +02:00
Layout.fillWidth: true
}
}
}
}