FlickableType added

This commit is contained in:
pokamest
2022-12-24 16:41:53 +00:00
parent 9222877306
commit 804a790392
21 changed files with 34 additions and 23 deletions
+1
View File
@@ -160,5 +160,6 @@
<file>ui/qml/Pages/PageQrDecoderIos.qml</file> <file>ui/qml/Pages/PageQrDecoderIos.qml</file>
<file>server_scripts/website_tor/Dockerfile</file> <file>server_scripts/website_tor/Dockerfile</file>
<file>ui/qml/Pages/PageViewConfig.qml</file> <file>ui/qml/Pages/PageViewConfig.qml</file>
<file>ui/qml/Controls/FlickableType.qml</file>
</qresource> </qresource>
</RCC> </RCC>
+14
View File
@@ -0,0 +1,14 @@
import QtQuick 2.12
import QtQuick.Controls 2.12
Flickable {
id: fl
Keys.onUpPressed: scrollBar.decrease()
Keys.onDownPressed: scrollBar.increase()
ScrollBar.vertical: ScrollBar {
id: scrollBar
policy: fl.height > fl.contentHeight ? ScrollBar.AlwaysOff : ScrollBar.AlwaysOn
}
}
@@ -50,7 +50,7 @@ Drawer {
} }
Flickable { FlickableType {
clip: true clip: true
anchors.fill: parent anchors.fill: parent
contentHeight: col.height contentHeight: col.height
+1 -5
View File
@@ -19,7 +19,7 @@ PageBase {
text: qsTr("Application Settings") text: qsTr("Application Settings")
} }
Flickable { FlickableType {
id: fl id: fl
width: root.width width: root.width
anchors.top: caption.bottom anchors.top: caption.bottom
@@ -162,10 +162,6 @@ PageBase {
} }
} }
} }
ScrollBar.vertical: ScrollBar {
policy: fl.height > content.height? ScrollBar.AlwaysOff : ScrollBar.AlwaysOn
}
} }
Logo { Logo {
+1 -1
View File
@@ -17,7 +17,7 @@ PageBase {
z: -1 z: -1
} }
Flickable { FlickableType {
id: fl id: fl
width: root.width width: root.width
anchors.top: back.bottom anchors.top: back.bottom
+1 -1
View File
@@ -178,7 +178,7 @@ PageBase {
Flickable { FlickableType {
visible: container_selector.selectedIndex <= 0 visible: container_selector.selectedIndex <= 0
clip: true clip: true
width: parent.width width: parent.width
+1 -1
View File
@@ -176,7 +176,7 @@ PageBase {
} }
ScrollBar.vertical: ScrollBar { ScrollBar.vertical: ScrollBar {
policy: ScrollBar.AlwaysOn policy: ScrollBar.AsNeeded
} }
} }
} }
+1 -1
View File
@@ -19,7 +19,7 @@ PageBase {
text: qsTr("Setup your server to use VPN") text: qsTr("Setup your server to use VPN")
} }
Flickable { FlickableType {
id: fl id: fl
width: root.width width: root.width
anchors.top: caption.bottom anchors.top: caption.bottom
@@ -19,7 +19,7 @@ PageBase {
text: qsTr("Setup Wizard") text: qsTr("Setup Wizard")
} }
Flickable { FlickableType {
id: fl id: fl
width: root.width width: root.width
anchors.top: caption.bottom anchors.top: caption.bottom
@@ -19,7 +19,7 @@ PageBase {
text: qsTr("Setup Wizard") text: qsTr("Setup Wizard")
} }
Flickable { FlickableType {
id: fl id: fl
width: root.width width: root.width
anchors.top: caption.bottom anchors.top: caption.bottom
@@ -19,7 +19,7 @@ PageBase {
text: qsTr("Setup Wizard") text: qsTr("Setup Wizard")
} }
Flickable { FlickableType {
id: fl id: fl
width: root.width width: root.width
anchors.top: caption.bottom anchors.top: caption.bottom
@@ -19,7 +19,7 @@ PageBase {
text: qsTr("Setup Wizard") text: qsTr("Setup Wizard")
} }
Flickable { FlickableType {
id: fl id: fl
width: root.width width: root.width
anchors.top: caption.bottom anchors.top: caption.bottom
+1 -1
View File
@@ -28,7 +28,7 @@ PageBase {
} }
Flickable { FlickableType {
clip: true clip: true
width: parent.width width: parent.width
anchors.top: caption.bottom anchors.top: caption.bottom
+1 -1
View File
@@ -20,7 +20,7 @@ PageBase {
text: qsTr("Check config") text: qsTr("Check config")
} }
Flickable { FlickableType {
id: fl id: fl
width: root.width width: root.width
anchors.top: caption.bottom anchors.top: caption.bottom
@@ -19,7 +19,7 @@ PageProtocolBase {
text: qsTr("OpenVPN Settings") text: qsTr("OpenVPN Settings")
} }
Flickable { FlickableType {
id: fl id: fl
width: root.width width: root.width
anchors.top: caption.bottom anchors.top: caption.bottom
@@ -18,7 +18,7 @@ PageShareProtocolBase {
text: qsTr("Share for Amnezia") text: qsTr("Share for Amnezia")
} }
Flickable { FlickableType {
id: fl id: fl
width: root.width width: root.width
anchors.top: caption.bottom anchors.top: caption.bottom
@@ -18,7 +18,7 @@ PageShareProtocolBase {
text: qsTr("Share Cloak Settings") text: qsTr("Share Cloak Settings")
} }
Flickable { FlickableType {
id: fl id: fl
width: root.width width: root.width
anchors.top: caption.bottom anchors.top: caption.bottom
@@ -42,7 +42,7 @@ PageShareProtocolBase {
visible: false visible: false
} }
Flickable { FlickableType {
id: fl id: fl
width: root.width width: root.width
anchors.top: caption.bottom anchors.top: caption.bottom
@@ -18,7 +18,7 @@ PageShareProtocolBase {
text: qsTr("Share OpenVPN Settings") text: qsTr("Share OpenVPN Settings")
} }
Flickable { FlickableType {
id: fl id: fl
width: root.width width: root.width
anchors.top: caption.bottom anchors.top: caption.bottom
@@ -18,7 +18,7 @@ PageShareProtocolBase {
text: qsTr("Share ShadowSocks Settings") text: qsTr("Share ShadowSocks Settings")
} }
Flickable { FlickableType {
id: fl id: fl
width: root.width width: root.width
anchors.top: caption.bottom anchors.top: caption.bottom
@@ -18,7 +18,7 @@ PageShareProtocolBase {
text: qsTr("Share WireGuard Settings") text: qsTr("Share WireGuard Settings")
} }
Flickable { FlickableType {
id: fl id: fl
width: root.width width: root.width
anchors.top: caption.bottom anchors.top: caption.bottom