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

View file

@ -160,5 +160,6 @@
<file>ui/qml/Pages/PageQrDecoderIos.qml</file>
<file>server_scripts/website_tor/Dockerfile</file>
<file>ui/qml/Pages/PageViewConfig.qml</file>
<file>ui/qml/Controls/FlickableType.qml</file>
</qresource>
</RCC>

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
}
}

View file

@ -50,7 +50,7 @@ Drawer {
}
Flickable {
FlickableType {
clip: true
anchors.fill: parent
contentHeight: col.height

View file

@ -19,7 +19,7 @@ PageBase {
text: qsTr("Application Settings")
}
Flickable {
FlickableType {
id: fl
width: root.width
anchors.top: caption.bottom
@ -162,10 +162,6 @@ PageBase {
}
}
}
ScrollBar.vertical: ScrollBar {
policy: fl.height > content.height? ScrollBar.AlwaysOff : ScrollBar.AlwaysOn
}
}
Logo {

View file

@ -17,7 +17,7 @@ PageBase {
z: -1
}
Flickable {
FlickableType {
id: fl
width: root.width
anchors.top: back.bottom

View file

@ -178,7 +178,7 @@ PageBase {
Flickable {
FlickableType {
visible: container_selector.selectedIndex <= 0
clip: true
width: parent.width

View file

@ -176,7 +176,7 @@ PageBase {
}
ScrollBar.vertical: ScrollBar {
policy: ScrollBar.AlwaysOn
policy: ScrollBar.AsNeeded
}
}
}

View file

@ -19,7 +19,7 @@ PageBase {
text: qsTr("Setup your server to use VPN")
}
Flickable {
FlickableType {
id: fl
width: root.width
anchors.top: caption.bottom

View file

@ -19,7 +19,7 @@ PageBase {
text: qsTr("Setup Wizard")
}
Flickable {
FlickableType {
id: fl
width: root.width
anchors.top: caption.bottom

View file

@ -19,7 +19,7 @@ PageBase {
text: qsTr("Setup Wizard")
}
Flickable {
FlickableType {
id: fl
width: root.width
anchors.top: caption.bottom

View file

@ -19,7 +19,7 @@ PageBase {
text: qsTr("Setup Wizard")
}
Flickable {
FlickableType {
id: fl
width: root.width
anchors.top: caption.bottom

View file

@ -19,7 +19,7 @@ PageBase {
text: qsTr("Setup Wizard")
}
Flickable {
FlickableType {
id: fl
width: root.width
anchors.top: caption.bottom

View file

@ -28,7 +28,7 @@ PageBase {
}
Flickable {
FlickableType {
clip: true
width: parent.width
anchors.top: caption.bottom

View file

@ -20,7 +20,7 @@ PageBase {
text: qsTr("Check config")
}
Flickable {
FlickableType {
id: fl
width: root.width
anchors.top: caption.bottom

View file

@ -19,7 +19,7 @@ PageProtocolBase {
text: qsTr("OpenVPN Settings")
}
Flickable {
FlickableType {
id: fl
width: root.width
anchors.top: caption.bottom

View file

@ -18,7 +18,7 @@ PageShareProtocolBase {
text: qsTr("Share for Amnezia")
}
Flickable {
FlickableType {
id: fl
width: root.width
anchors.top: caption.bottom

View file

@ -18,7 +18,7 @@ PageShareProtocolBase {
text: qsTr("Share Cloak Settings")
}
Flickable {
FlickableType {
id: fl
width: root.width
anchors.top: caption.bottom

View file

@ -42,7 +42,7 @@ PageShareProtocolBase {
visible: false
}
Flickable {
FlickableType {
id: fl
width: root.width
anchors.top: caption.bottom

View file

@ -18,7 +18,7 @@ PageShareProtocolBase {
text: qsTr("Share OpenVPN Settings")
}
Flickable {
FlickableType {
id: fl
width: root.width
anchors.top: caption.bottom

View file

@ -18,7 +18,7 @@ PageShareProtocolBase {
text: qsTr("Share ShadowSocks Settings")
}
Flickable {
FlickableType {
id: fl
width: root.width
anchors.top: caption.bottom

View file

@ -18,7 +18,7 @@ PageShareProtocolBase {
text: qsTr("Share WireGuard Settings")
}
Flickable {
FlickableType {
id: fl
width: root.width
anchors.top: caption.bottom