From 9c4bef95697b6694e54ea9c8f8a3dd6c0c39a97d Mon Sep 17 00:00:00 2001 From: Venugopal Shivashankar Date: Wed, 9 Aug 2017 12:40:06 +0200 Subject: Example: Replace the deprecated property Task-number: QTBUG-61432 Change-Id: Idd65adc8e6638d58e590fa3b72939529b2ebac11 Reviewed-by: Mitch Curtis --- examples/quick/demos/maroon/content/SoundEffect.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/quick') diff --git a/examples/quick/demos/maroon/content/SoundEffect.qml b/examples/quick/demos/maroon/content/SoundEffect.qml index 136b33aa9b..4b723170a0 100644 --- a/examples/quick/demos/maroon/content/SoundEffect.qml +++ b/examples/quick/demos/maroon/content/SoundEffect.qml @@ -42,7 +42,7 @@ 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 + "'; muted: !Qt.application.active }", container); + property QtObject effect: Qt.createQmlObject("import QtMultimedia 5.0; SoundEffect{ source: '" + container.source + "'; muted: Qt.application.state != Qt.ApplicationActive }", container); property url source: "" onSourceChanged: if (effect != null) effect.source = source; function play() { -- cgit v1.2.3