File tree 3 files changed +24
-0
lines changed
3 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -114,6 +114,28 @@ ScrollView {
114
114
}
115
115
}
116
116
117
+ Button {
118
+ id: scrollToTopButton
119
+
120
+ anchors .bottom : parent .bottom
121
+ anchors .right : parent .right
122
+
123
+ hoverEnabled: true
124
+ padding: Style .smallSpacing
125
+
126
+ Accessible .role : Accessible .Button
127
+ Accessible .name : qsTr (" Scroll to top" )
128
+ Accessible .onPressAction : scrollToTopButton .clicked ()
129
+
130
+ icon .source : " image://svgimage-custom-color/chevron-double-up.svg/" + palette .buttonText
131
+ icon .width : Style .activityListButtonIconSize
132
+ icon .height : Style .activityListButtonIconSize
133
+
134
+ onClicked: controlRoot .scrollToTop ()
135
+
136
+ visible: ! controlRoot .atYBeginning && controlRoot .contentHeight > controlRoot .height
137
+ }
138
+
117
139
Column {
118
140
id: placeholderColumn
119
141
width: parent .width * 0.8
Original file line number Diff line number Diff line change 241
241
<file>theme/send.svg</file>
242
242
<file>theme/call-notification.wav</file>
243
243
<file>theme/talk-app.svg</file>
244
+ <file>theme/chevron-double-up.svg</file>
244
245
</qresource>
245
246
</RCC>
You can’t perform that action at this time.
0 commit comments