Skip to content
QGCFlickable.qml 658 B
Newer Older
import QtQuick 2.3
Don Gagne's avatar
Don Gagne committed

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

Don Gagne's avatar
Don Gagne committed
/// QGC version of Flickable control that shows horizontal/vertial scroll indicators
Don Gagne's avatar
Don Gagne committed
Flickable {
    id:             root
    boundsBehavior: Flickable.StopAtBounds
Don Gagne's avatar
Don Gagne committed
    clip:           true
Don Gagne's avatar
Don Gagne committed

    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)
    }
}