make longpress open on the audio button open the preview
commit23913a072a136ee770eccca1c2842f9b42003d1b
authorMichael Zanetti <michael.zanetti@canonical.com>
dateWed 3 Jun 2015, 17:51 (11 years ago)
parent453f19e
plugins/Dash/CardCreator.js+3
@@ -141,6 +141,9 @@ var kAudioButtonCode = 'AbstractButton { \n\
141141 DashAudioPlayer.playSource(source); \n\
142142 } \n\
143143 } \n\
144+ onPressAndHold: { \n\
145+ root.pressAndHold(); \n\
146+ } \n\
144147 }';
145148
146149var kOverlayLoaderCode = 'Loader { \n\
tests/plugins/Dash/cardcreator/8.res+3
@@ -97,6 +97,9 @@ CardAudioProgress {
9797 DashAudioPlayer.playSource(source);
9898 }
9999 }
100+ onPressAndHold: {
101+ root.pressAndHold();
102+ }
100103 }UbuntuShape {
101104 id: touchdown;
102105 objectName: "touchdown";