QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
QGCFlickable.qml
Go to the documentation of this file.
1import QtQuick
2import QtQuick.Controls
3
4import QGroundControl
5import QGroundControl.Controls
6
7/// QGC version of Flickable control that shows horizontal/vertial scroll indicators
8Flickable {
9 id: root
10 boundsBehavior: Flickable.StopAtBounds
11 clip: true
12 maximumFlickVelocity: (ScreenTools.realPixelDensity * 25.4) * 8 // About two inches per second
13
14 property color indicatorColor: qgcPal.text
15
16 Component.onCompleted: {
17 var indicatorComponent = Qt.createComponent("QGCFlickableScrollIndicator.qml")
18 indicatorComponent.createObject(root, { orientation: QGCFlickableScrollIndicator.Horizontal })
19 indicatorComponent = Qt.createComponent("QGCFlickableScrollIndicator.qml")
20 indicatorComponent.createObject(root, { orientation: QGCFlickableScrollIndicator.Vertical })
21 }
22}