mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-23 02:00:20 +07:00
added new drawer2type for replacing drawertype
This commit is contained in:
@@ -8,7 +8,7 @@ import "../Controls2"
|
||||
import "../Controls2/TextTypes"
|
||||
import "../Config"
|
||||
|
||||
DrawerType {
|
||||
Drawer2Type {
|
||||
id: root
|
||||
|
||||
width: parent.width
|
||||
|
||||
@@ -5,7 +5,7 @@ import QtQuick.Layouts
|
||||
import "../Controls2"
|
||||
import "../Controls2/TextTypes"
|
||||
|
||||
DrawerType {
|
||||
Drawer2Type {
|
||||
id: root
|
||||
|
||||
property string headerText
|
||||
|
||||
@@ -5,7 +5,7 @@ import QtQuick.Layouts
|
||||
import "../Controls2"
|
||||
import "../Controls2/TextTypes"
|
||||
|
||||
DrawerType {
|
||||
Drawer2Type {
|
||||
id: root
|
||||
|
||||
width: parent.width
|
||||
|
||||
@@ -16,7 +16,7 @@ import "../Controls2/TextTypes"
|
||||
import "../Config"
|
||||
import "../Components"
|
||||
|
||||
DrawerType {
|
||||
Drawer2Type {
|
||||
id: root
|
||||
|
||||
property alias headerText: header.headerText
|
||||
@@ -30,7 +30,7 @@ DrawerType {
|
||||
width: parent.width
|
||||
height: parent.height * 0.9
|
||||
|
||||
onClosed: {
|
||||
onClose: {
|
||||
configExtension = ".vpn"
|
||||
configCaption = qsTr("Save AmneziaVPN config")
|
||||
configFileName = "amnezia_config"
|
||||
@@ -126,13 +126,14 @@ DrawerType {
|
||||
text: qsTr("Show connection settings")
|
||||
|
||||
onClicked: {
|
||||
configContentDrawer.visible = true
|
||||
configContentDrawer.open()
|
||||
}
|
||||
}
|
||||
|
||||
DrawerType {
|
||||
Drawer2Type {
|
||||
id: configContentDrawer
|
||||
|
||||
parent: root
|
||||
width: parent.width
|
||||
height: parent.height * 0.9
|
||||
|
||||
@@ -145,7 +146,7 @@ DrawerType {
|
||||
anchors.topMargin: 16
|
||||
|
||||
backButtonFunction: function() {
|
||||
configContentDrawer.visible = false
|
||||
configContentDrawer.close()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user