FlickableMoreIndicator.qml Example File
gallery/qml/FlickableMoreIndicator.qml
import QtQuick 2.2
Rectangle {
anchors.top: atTop ? flickable.top : undefined
anchors.bottom: atTop ? undefined : flickable.bottom
anchors.left: isScreenPortrait ? parent.left : parent.horizontalCenter
anchors.right: parent.right
height: 30
visible: flickable.visible
opacity: atTop
? (flickable.contentY > showDistance ? 1 : 0)
: (flickable.contentY < flickable.contentHeight - showDistance ? 1 : 0)
scale: atTop ? 1 : -1
readonly property real showDistance: 0
property Flickable flickable
property color gradientColor
property bool atTop
Behavior on opacity {
NumberAnimation {
}
}
gradient: Gradient {
GradientStop {
position: 0.0
color: gradientColor
}
GradientStop {
position: 1.0
color: "transparent"
}
}
}