QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
QGCListView.qml
Go to the documentation of this file.
1import QtQuick
2
3import QGroundControl
4import QGroundControl.Controls
5
6/// QGC version of ListVIew control that shows horizontal/vertial scroll indicators
7ListView {
8 id: root
9 boundsBehavior: Flickable.StopAtBounds
10 clip: true
11
12 property color indicatorColor: qgcPal.text
13
14 QGCPalette { id: qgcPal; colorGroupEnabled: enabled }
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}