QGCFlickable.qml 658 Bytes
Newer Older
1
import QtQuick 2.3
Don Gagne's avatar
Don Gagne committed
2

Don Gagne's avatar
Don Gagne committed
3
import QGroundControl.Palette 1.0
Don Gagne's avatar
Don Gagne committed
4

Don Gagne's avatar
Don Gagne committed
5
/// QGC version of Flickable control that shows horizontal/vertial scroll indicators
Don Gagne's avatar
Don Gagne committed
6 7 8
Flickable {
    id:             root
    boundsBehavior: Flickable.StopAtBounds
Don Gagne's avatar
Don Gagne committed
9
    clip:           true
Don Gagne's avatar
Don Gagne committed
10 11 12 13 14 15 16 17 18 19 20 21

    property color indicatorColor: qgcPal.text

    QGCPalette { id: qgcPal; colorGroupEnabled: enabled }

    Component.onCompleted: {
        var indicatorComponent = Qt.createComponent("QGCFlickableVerticalIndicator.qml")
        indicatorComponent.createObject(root)
        indicatorComponent = Qt.createComponent("QGCFlickableHorizontalIndicator.qml")
        indicatorComponent.createObject(root)
    }
}