PageShare readonly properties
This commit is contained in:
parent
3a62f1f20b
commit
10e91b06f4
1 changed files with 16 additions and 16 deletions
|
|
@ -117,38 +117,38 @@ PageType {
|
||||||
|
|
||||||
QtObject {
|
QtObject {
|
||||||
id: amneziaConnectionFormat
|
id: amneziaConnectionFormat
|
||||||
property string name: qsTr("For the AmneziaVPN app")
|
readonly property string name: qsTr("For the AmneziaVPN app")
|
||||||
property var type: PageShare.ConfigType.AmneziaConnection
|
readonly property int type: PageShare.ConfigType.AmneziaConnection
|
||||||
}
|
}
|
||||||
QtObject {
|
QtObject {
|
||||||
id: openVpnConnectionFormat
|
id: openVpnConnectionFormat
|
||||||
property string name: qsTr("OpenVPN native format")
|
readonly property string name: qsTr("OpenVPN native format")
|
||||||
property var type: PageShare.ConfigType.OpenVpn
|
readonly property int type: PageShare.ConfigType.OpenVpn
|
||||||
}
|
}
|
||||||
QtObject {
|
QtObject {
|
||||||
id: wireGuardConnectionFormat
|
id: wireGuardConnectionFormat
|
||||||
property string name: qsTr("WireGuard native format")
|
readonly property string name: qsTr("WireGuard native format")
|
||||||
property var type: PageShare.ConfigType.WireGuard
|
readonly property int type: PageShare.ConfigType.WireGuard
|
||||||
}
|
}
|
||||||
QtObject {
|
QtObject {
|
||||||
id: awgConnectionFormat
|
id: awgConnectionFormat
|
||||||
property string name: qsTr("AmneziaWG native format")
|
readonly property string name: qsTr("AmneziaWG native format")
|
||||||
property var type: PageShare.ConfigType.Awg
|
readonly property int type: PageShare.ConfigType.Awg
|
||||||
}
|
}
|
||||||
QtObject {
|
QtObject {
|
||||||
id: shadowSocksConnectionFormat
|
id: shadowSocksConnectionFormat
|
||||||
property string name: qsTr("Shadowsocks native format")
|
readonly property string name: qsTr("Shadowsocks native format")
|
||||||
property var type: PageShare.ConfigType.ShadowSocks
|
readonly property int type: PageShare.ConfigType.ShadowSocks
|
||||||
}
|
}
|
||||||
QtObject {
|
QtObject {
|
||||||
id: cloakConnectionFormat
|
id: cloakConnectionFormat
|
||||||
property string name: qsTr("Cloak native format")
|
readonly property string name: qsTr("Cloak native format")
|
||||||
property var type: PageShare.ConfigType.Cloak
|
readonly property int type: PageShare.ConfigType.Cloak
|
||||||
}
|
}
|
||||||
QtObject {
|
QtObject {
|
||||||
id: xrayConnectionFormat
|
id: xrayConnectionFormat
|
||||||
property string name: qsTr("XRay native format")
|
readonly property string name: qsTr("XRay native format")
|
||||||
property var type: PageShare.ConfigType.Xray
|
readonly property int type: PageShare.ConfigType.Xray
|
||||||
}
|
}
|
||||||
|
|
||||||
FlickableType {
|
FlickableType {
|
||||||
|
|
@ -343,8 +343,8 @@ PageType {
|
||||||
clickedFunction: function() {
|
clickedFunction: function() {
|
||||||
handler()
|
handler()
|
||||||
|
|
||||||
if (serverSelector.currentIndex !== serverSelectorListView.currentIndex) {
|
if (serverSelector.selectedIndex !== serverSelectorListView.selectedIndex) {
|
||||||
serverSelector.currentIndex = serverSelectorListView.currentIndex
|
serverSelector.selectedIndex = serverSelectorListView.currentIndex
|
||||||
serverSelector.severSelectorIndexChanged()
|
serverSelector.severSelectorIndexChanged()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue