Debian Codegraph @

src/GUI/qml/ScrollToBottomHint.qml

raw
1 import QtQuick 2.4
2 import QtQml 2.4
3
4 Item {
5 id: root
6 property alias timeout: showTimeout.interval
7
8 property bool atTheBottom: false
9 property bool didTimeout: false
10
11 opacity: didTimeout && !atTheBottom
12
13 width: image.width
14 height: image.height
15
16 Timer {
17 id: showTimeout
18 running: true
19 onTriggered: didTimeout = true;
20 }
21
22 Behavior on opacity {
23 NumberAnimation {
24 duration: 500
25 easing.type: Easing.InOutQuad
26 }
27 }
28
29 Image {
30 id: image
31 source: "image://colored-icon/scroll-down?themeContrast"
32 }
33 }