2023-10-03 18:53:00 +02:00
|
|
|
import QtQuick
|
|
|
|
|
import QtQuick.Layouts
|
|
|
|
|
import QtQuick.Controls
|
|
|
|
|
import QtQuick.Controls.Material
|
2023-07-13 16:19:37 +02:00
|
|
|
|
|
|
|
|
ListView {
|
|
|
|
|
id: root
|
|
|
|
|
|
2023-10-03 18:53:00 +02:00
|
|
|
// avoid interference with android back-gesture by defining deadzones
|
|
|
|
|
// you can override to 0 if listview is away from left or right edge.
|
|
|
|
|
property int exclusionZone: constants.fingerWidth / 2
|
|
|
|
|
property int leftExclusionZone: exclusionZone
|
|
|
|
|
property int rightExclusionZone: exclusionZone
|
2023-07-13 16:19:37 +02:00
|
|
|
|
|
|
|
|
MouseArea {
|
|
|
|
|
anchors {top: root.top; left: root.left; bottom: root.bottom }
|
2023-10-03 18:53:00 +02:00
|
|
|
visible: leftExclusionZone > 0
|
|
|
|
|
width: leftExclusionZone
|
2023-07-13 16:19:37 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
MouseArea {
|
|
|
|
|
anchors { top: root.top; right: root.right; bottom: root.bottom }
|
2023-10-03 18:53:00 +02:00
|
|
|
visible: rightExclusionZone > 0
|
|
|
|
|
width: rightExclusionZone
|
2023-07-13 16:19:37 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|