added new drawer2type for replacing drawertype

This commit is contained in:
ronoaer 2023-10-14 23:00:31 +08:00
parent 4b7c8f21c2
commit 384ce9853b
24 changed files with 350 additions and 56 deletions

View file

@ -8,7 +8,7 @@ import "../Controls2"
import "../Controls2/TextTypes"
import "../Config"
DrawerType {
Drawer2Type {
id: root
width: parent.width

View file

@ -5,7 +5,7 @@ import QtQuick.Layouts
import "../Controls2"
import "../Controls2/TextTypes"
DrawerType {
Drawer2Type {
id: root
property string headerText

View file

@ -5,7 +5,7 @@ import QtQuick.Layouts
import "../Controls2"
import "../Controls2/TextTypes"
DrawerType {
Drawer2Type {
id: root
width: parent.width

View file

@ -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()
}
}