diff options
Diffstat (limited to 'examples/quick/demos/maroon/content/SoundEffect.qml')
-rw-r--r-- | examples/quick/demos/maroon/content/SoundEffect.qml | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/quick/demos/maroon/content/SoundEffect.qml b/examples/quick/demos/maroon/content/SoundEffect.qml index 05e8e94ab5..ef5e3febac 100644 --- a/examples/quick/demos/maroon/content/SoundEffect.qml +++ b/examples/quick/demos/maroon/content/SoundEffect.qml @@ -42,12 +42,11 @@ import QtQuick 2.0 //Proxies a SoundEffect if QtMultimedia is installed Item { id: container - property QtObject effect: Qt.createQmlObject("import QtMultimedia 5.0; SoundEffect{ source: '" + container.source + "' }", container); + property QtObject effect: Qt.createQmlObject("import QtMultimedia 5.0; SoundEffect{ source: '" + container.source + "'; muted: !Qt.application.active }", container); property url source: "" onSourceChanged: if (effect != null) effect.source = source; function play() { if (effect != null) effect.play(); } - } |