on xenial help sign in
use action
commit26850f2d6dbad8422d39e0c6eed4a1644949310a authorAndrea Cimitan <andrea.cimitan@gmail.com> dateFri 20 May 2016, 13:13 (10 years ago) parent2160108
1 file changed+8−2
qml/Dash/Previews/PreviewMediaToolbar.qml+8−2
qml/Dash/Previews/PreviewMediaToolbar.qml+8−2
@@ -25,6 +25,12 @@ Rectangle {
2525 color: Qt.rgba(0, 0, 0, 0.8)
2626 visible: sharingWidget.active
2727
28+ Action {
29+ id: sharingAction
30+ iconName: "share"
31+ onTriggered: sharingWidget.showPeerPicker()
32+ }
33+
2834 AbstractButton {
2935 id: button
3036 anchors {
@@ -34,13 +40,13 @@ Rectangle {
3440 }
3541 height: units.gu(4)
3642 width: units.gu(4)
37− onClicked: sharingWidget.showPeerPicker()
43+ action: sharingAction
3844
3945 Icon {
4046 anchors.centerIn: parent
4147 height: units.gu(3)
4248 width: units.gu(3)
43− source: "image://theme/share"
49+ source: button.action.iconSource
4450 }
4551 }
4652