FlickableType added
This commit is contained in:
parent
9222877306
commit
804a790392
21 changed files with 34 additions and 23 deletions
|
@ -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>
|
||||
|
|
14
client/ui/qml/Controls/FlickableType.qml
Normal file
14
client/ui/qml/Controls/FlickableType.qml
Normal 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
|
||||
anchors.fill: parent
|
||||
contentHeight: col.height
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -17,7 +17,7 @@ PageBase {
|
|||
z: -1
|
||||
}
|
||||
|
||||
Flickable {
|
||||
FlickableType {
|
||||
id: fl
|
||||
width: root.width
|
||||
anchors.top: back.bottom
|
||||
|
|
|
@ -178,7 +178,7 @@ PageBase {
|
|||
|
||||
|
||||
|
||||
Flickable {
|
||||
FlickableType {
|
||||
visible: container_selector.selectedIndex <= 0
|
||||
clip: true
|
||||
width: parent.width
|
||||
|
|
|
@ -176,7 +176,7 @@ PageBase {
|
|||
}
|
||||
|
||||
ScrollBar.vertical: ScrollBar {
|
||||
policy: ScrollBar.AlwaysOn
|
||||
policy: ScrollBar.AsNeeded
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@ PageBase {
|
|||
text: qsTr("Setup your server to use VPN")
|
||||
}
|
||||
|
||||
Flickable {
|
||||
FlickableType {
|
||||
id: fl
|
||||
width: root.width
|
||||
anchors.top: caption.bottom
|
||||
|
|
|
@ -19,7 +19,7 @@ PageBase {
|
|||
text: qsTr("Setup Wizard")
|
||||
}
|
||||
|
||||
Flickable {
|
||||
FlickableType {
|
||||
id: fl
|
||||
width: root.width
|
||||
anchors.top: caption.bottom
|
||||
|
|
|
@ -19,7 +19,7 @@ PageBase {
|
|||
text: qsTr("Setup Wizard")
|
||||
}
|
||||
|
||||
Flickable {
|
||||
FlickableType {
|
||||
id: fl
|
||||
width: root.width
|
||||
anchors.top: caption.bottom
|
||||
|
|
|
@ -19,7 +19,7 @@ PageBase {
|
|||
text: qsTr("Setup Wizard")
|
||||
}
|
||||
|
||||
Flickable {
|
||||
FlickableType {
|
||||
id: fl
|
||||
width: root.width
|
||||
anchors.top: caption.bottom
|
||||
|
|
|
@ -19,7 +19,7 @@ PageBase {
|
|||
text: qsTr("Setup Wizard")
|
||||
}
|
||||
|
||||
Flickable {
|
||||
FlickableType {
|
||||
id: fl
|
||||
width: root.width
|
||||
anchors.top: caption.bottom
|
||||
|
|
|
@ -28,7 +28,7 @@ PageBase {
|
|||
}
|
||||
|
||||
|
||||
Flickable {
|
||||
FlickableType {
|
||||
clip: true
|
||||
width: parent.width
|
||||
anchors.top: caption.bottom
|
||||
|
|
|
@ -20,7 +20,7 @@ PageBase {
|
|||
text: qsTr("Check config")
|
||||
}
|
||||
|
||||
Flickable {
|
||||
FlickableType {
|
||||
id: fl
|
||||
width: root.width
|
||||
anchors.top: caption.bottom
|
||||
|
|
|
@ -19,7 +19,7 @@ PageProtocolBase {
|
|||
text: qsTr("OpenVPN Settings")
|
||||
}
|
||||
|
||||
Flickable {
|
||||
FlickableType {
|
||||
id: fl
|
||||
width: root.width
|
||||
anchors.top: caption.bottom
|
||||
|
|
|
@ -18,7 +18,7 @@ PageShareProtocolBase {
|
|||
text: qsTr("Share for Amnezia")
|
||||
}
|
||||
|
||||
Flickable {
|
||||
FlickableType {
|
||||
id: fl
|
||||
width: root.width
|
||||
anchors.top: caption.bottom
|
||||
|
|
|
@ -18,7 +18,7 @@ PageShareProtocolBase {
|
|||
text: qsTr("Share Cloak Settings")
|
||||
}
|
||||
|
||||
Flickable {
|
||||
FlickableType {
|
||||
id: fl
|
||||
width: root.width
|
||||
anchors.top: caption.bottom
|
||||
|
|
|
@ -42,7 +42,7 @@ PageShareProtocolBase {
|
|||
visible: false
|
||||
}
|
||||
|
||||
Flickable {
|
||||
FlickableType {
|
||||
id: fl
|
||||
width: root.width
|
||||
anchors.top: caption.bottom
|
||||
|
|
|
@ -18,7 +18,7 @@ PageShareProtocolBase {
|
|||
text: qsTr("Share OpenVPN Settings")
|
||||
}
|
||||
|
||||
Flickable {
|
||||
FlickableType {
|
||||
id: fl
|
||||
width: root.width
|
||||
anchors.top: caption.bottom
|
||||
|
|
|
@ -18,7 +18,7 @@ PageShareProtocolBase {
|
|||
text: qsTr("Share ShadowSocks Settings")
|
||||
}
|
||||
|
||||
Flickable {
|
||||
FlickableType {
|
||||
id: fl
|
||||
width: root.width
|
||||
anchors.top: caption.bottom
|
||||
|
|
|
@ -18,7 +18,7 @@ PageShareProtocolBase {
|
|||
text: qsTr("Share WireGuard Settings")
|
||||
}
|
||||
|
||||
Flickable {
|
||||
FlickableType {
|
||||
id: fl
|
||||
width: root.width
|
||||
anchors.top: caption.bottom
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue