mirror of
https://github.com/tnodir/fort
synced 2024-11-15 05:25:56 +00:00
UI: Don't use swipe for tabs.
This commit is contained in:
parent
8831c4073a
commit
bdd4078374
@ -9,6 +9,7 @@
|
||||
<file>qml/controls/ScrollBarControl.qml</file>
|
||||
<file>qml/controls/SpinCombo.qml</file>
|
||||
<file>qml/controls/SpinComboRow.qml</file>
|
||||
<file>qml/controls/SwipeViewControl.qml</file>
|
||||
<file>qml/controls/TextAreaFrame.qml</file>
|
||||
<file>qml/controls/TextContextMenu.qml</file>
|
||||
<file>qml/controls/TextFieldFrame.qml</file>
|
||||
|
11
src/ui/qml/controls/SwipeViewControl.qml
Normal file
11
src/ui/qml/controls/SwipeViewControl.qml
Normal file
@ -0,0 +1,11 @@
|
||||
import QtQuick 2.9
|
||||
import QtQuick.Controls 2.2
|
||||
|
||||
SwipeView {
|
||||
|
||||
Binding {
|
||||
target: contentItem
|
||||
property: "highlightMoveDuration"
|
||||
value: interactive ? 250 : 0
|
||||
}
|
||||
}
|
@ -1,6 +1,7 @@
|
||||
import QtQuick 2.9
|
||||
import QtQuick.Controls 2.2
|
||||
import QtQuick.Layouts 1.3
|
||||
import "../controls"
|
||||
import com.fortfirewall 1.0
|
||||
|
||||
Page {
|
||||
@ -75,9 +76,11 @@ Page {
|
||||
}
|
||||
}
|
||||
|
||||
SwipeView {
|
||||
SwipeViewControl {
|
||||
id: swipeView
|
||||
anchors.fill: parent
|
||||
|
||||
interactive: false
|
||||
currentIndex: tabBar.currentIndex
|
||||
|
||||
OptionsPage {}
|
||||
|
Loading…
Reference in New Issue
Block a user