UI: Don't use swipe for tabs.

This commit is contained in:
Nodir Temirkhodjaev 2018-01-28 11:22:57 +05:00
parent 8831c4073a
commit bdd4078374
3 changed files with 16 additions and 1 deletions

View File

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

View File

@ -0,0 +1,11 @@
import QtQuick 2.9
import QtQuick.Controls 2.2
SwipeView {
Binding {
target: contentItem
property: "highlightMoveDuration"
value: interactive ? 250 : 0
}
}

View File

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