File tree 3 files changed +26
-0
lines changed
3 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -114,6 +114,30 @@ ScrollView {
114
114
}
115
115
}
116
116
117
+ Row {
118
+ anchors .bottom : parent .bottom
119
+ anchors .right : parent .right
120
+
121
+ Button {
122
+ id: scrollToTopButton
123
+
124
+ hoverEnabled: true
125
+ padding: Style .smallSpacing
126
+
127
+ Accessible .role : Accessible .Button
128
+ Accessible .name : qsTr (" Scroll to top" )
129
+ Accessible .onPressAction : scrollToTopButton .clicked ()
130
+
131
+ icon .source : " image://svgimage-custom-color/chevron-double-up.svg/" + palette .buttonText
132
+ icon .width : Style .activityListButtonIconSize
133
+ icon .height : Style .activityListButtonIconSize
134
+
135
+ onClicked: controlRoot .scrollToTop ()
136
+
137
+ visible: ! controlRoot .atYBeginning && controlRoot .contentHeight > controlRoot .height
138
+ }
139
+ }
140
+
117
141
Column {
118
142
id: placeholderColumn
119
143
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