mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-20 02:00:55 +07:00
e00656d757
- replaced PageLoader with PageType with stackView property. - added error handling when installing a server/container
73 lines
1.7 KiB
QML
73 lines
1.7 KiB
QML
import QtQuick
|
|
import QtQuick.Controls
|
|
import QtQuick.Layouts
|
|
|
|
import PageEnum 1.0
|
|
|
|
import "./"
|
|
import "../Controls2"
|
|
import "../Controls2/TextTypes"
|
|
import "../Config"
|
|
|
|
PageType {
|
|
id: root
|
|
|
|
FlickableType {
|
|
id: fl
|
|
anchors.top: root.top
|
|
anchors.bottom: root.bottom
|
|
contentHeight: content.height
|
|
|
|
ColumnLayout {
|
|
id: content
|
|
|
|
anchors.top: parent.top
|
|
anchors.left: parent.left
|
|
anchors.right: parent.right
|
|
anchors.rightMargin: 16
|
|
anchors.leftMargin: 16
|
|
|
|
spacing: 16
|
|
|
|
HeaderType {
|
|
Layout.fillWidth: true
|
|
Layout.topMargin: 20
|
|
|
|
backButtonImage: "qrc:/images/controls/arrow-left.svg"
|
|
|
|
headerText: "Ключ для подключения"
|
|
descriptionText: "Строка, которая начинается с vpn://..."
|
|
}
|
|
|
|
TextFieldWithHeaderType {
|
|
Layout.fillWidth: true
|
|
Layout.topMargin: 32
|
|
|
|
headerText: "Ключ"
|
|
textFieldPlaceholderText: "vpn://"
|
|
buttonText: "Вставить"
|
|
|
|
clickedFunc: function() {
|
|
textField.text = ""
|
|
textField.paste()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
BasicButtonType {
|
|
anchors.bottom: parent.bottom
|
|
anchors.left: parent.left
|
|
anchors.right: parent.right
|
|
anchors.rightMargin: 16
|
|
anchors.leftMargin: 16
|
|
anchors.bottomMargin: 32
|
|
|
|
text: qsTr("Подключиться")
|
|
|
|
onClicked: function() {
|
|
// goToPage(PageEnum.PageSetupWizardInstalling)
|
|
}
|
|
}
|
|
}
|