summaryrefslogtreecommitdiffstats
path: root/examples/demos/maroon/content/SoundEffect.qml
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@qt.io>2020-12-01 13:57:32 +0100
committerKai Koehne <kai.koehne@qt.io>2020-12-02 16:04:51 +0100
commit9194f8602b635c7cfd4f5b7e59f402d9a944e1f9 (patch)
treec7b64c570c519b42801bf5225263c69a1db23513 /examples/demos/maroon/content/SoundEffect.qml
parentc42abf8625c0f6ca44cad665151c4ae0e8410d09 (diff)
examples: Do not use versioned QML import
Ignore .ui.qml files though for now, until they are properly handled by Qt Design Studio. Task-number: QTBUG-89033 Change-Id: I85ea1dc2f85928e9fa1f473535687ab8b0288e9d Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'examples/demos/maroon/content/SoundEffect.qml')
-rw-r--r--examples/demos/maroon/content/SoundEffect.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/demos/maroon/content/SoundEffect.qml b/examples/demos/maroon/content/SoundEffect.qml
index 35a68eb5e..1f742d7af 100644
--- a/examples/demos/maroon/content/SoundEffect.qml
+++ b/examples/demos/maroon/content/SoundEffect.qml
@@ -48,11 +48,11 @@
**
****************************************************************************/
-import QtQuick 2.0
+import QtQuick
//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.state != Qt.ApplicationActive }", container);
+ property QtObject effect: Qt.createQmlObject("import QtMultimedia; SoundEffect{ source: '" + container.source + "'; muted: Qt.application.state != Qt.ApplicationActive }",container);
property url source: ""
onSourceChanged: if (effect != null) effect.source = source;
function play() {