on xenial help sign in
Added the frontend part for the sound-hint support.
commite04a2ff1102e52889215cc21b8d0637ae3f50a52 authorMirco Müller <mirco.mueller@canonical.com> dateMon 5 May 2014, 15:46 (12 years ago) parentdb5700c
1 file changed+12
qml/Notifications/Notification.qml+12
qml/Notifications/Notification.qml+12
@@ -15,6 +15,7 @@
1515 */
1616
1717import QtQuick 2.0
18+import QtMultimedia 5.0
1819import Ubuntu.Components 0.1
1920import Unity.Notifications 1.0
2021import QMenuModel 0.1
@@ -66,6 +67,17 @@ Item {
6667 return result;
6768 }
6869
70+ Audio {
71+ id: sound
72+ source: hints["sound-file"]
73+ }
74+
75+ Component.onCompleted: {
76+ if (hints["suppress-sound"] != "true") {
77+ sound.play ()
78+ }
79+ }
80+
6981 Behavior on height {
7082 id: normalHeightBehavior
7183