Ubuntu Pastebin

Paste from michal at Mon, 26 Oct 2015 17:01:49 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
=== modified file 'qml/Components/ScreenGrabber.qml'
--- qml/Components/ScreenGrabber.qml	2015-10-21 11:51:46 +0000
+++ qml/Components/ScreenGrabber.qml	2015-10-26 16:52:28 +0000
@@ -15,7 +15,7 @@
  */
 
 import QtQuick 2.0
-import QtMultimedia 5.0
+//import QtMultimedia 5.0
 import ScreenGrabber 0.1
 import GlobalShortcut 1.0
 
@@ -40,12 +40,12 @@
         onTriggered: capture()
     }
 
-    Audio {
+/*    Audio {
         id: shutterSound
         audioRole: MediaPlayer.alert
         source: "/system/media/audio/ui/camera_click.ogg"
     }
-
+*/
     function capture() {
         visible = true;
         shutterSound.stop();

=== modified file 'qml/Dash/Previews/PreviewAudioPlayback.qml'
--- qml/Dash/Previews/PreviewAudioPlayback.qml	2015-08-03 14:27:48 +0000
+++ qml/Dash/Previews/PreviewAudioPlayback.qml	2015-10-26 16:53:41 +0000
@@ -15,7 +15,7 @@
  */
 
 import QtQuick 2.0
-import QtMultimedia 5.0
+//import QtMultimedia 5.0
 import Ubuntu.Components 0.1
 
 /*! \brief Preview widget for audio tracks.
@@ -37,7 +37,7 @@
     implicitHeight: childrenRect.height
 
     onIsCurrentPreviewChanged: if (!isCurrentPreview) audio.stop()
-
+/*
     Audio {
         id: audio
         objectName: "audio"
@@ -67,7 +67,7 @@
             }
         }
     }
-
+*/
     Column {
         anchors { left: parent.left; right: parent.right }
         visible: trackRepeater.count > 0

=== modified file 'qml/Notifications/Notification.qml'
--- qml/Notifications/Notification.qml	2015-10-21 11:51:02 +0000
+++ qml/Notifications/Notification.qml	2015-10-26 16:52:58 +0000
@@ -15,7 +15,7 @@
  */
 
 import QtQuick 2.0
-import QtMultimedia 5.0
+//import QtMultimedia 5.0
 import Powerd 0.1
 import Ubuntu.Components 1.2
 import Unity.Notifications 1.0
@@ -79,14 +79,14 @@
 
         return result;
     }
-
+/*
     Audio {
         id: sound
         objectName: "sound"
         audioRole: MediaPlayer.alert
         source: hints["suppress-sound"] !== "true" && hints["sound-file"] !== undefined ? hints["sound-file"] : ""
     }
-
+*/
     Component.onCompleted: {
         // Turn on screen as needed (Powerd.Notification means the screen
         // stays on for a shorter amount of time)
Download as text