summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2021-10-04 15:04:49 +0200
committerLars Knoll <lars.knoll@qt.io>2021-10-04 13:47:04 +0000
commit6cb1b78921de3af329d6a5aae95599ee728788c5 (patch)
tree626319537757b1d30d68eac6d33f8fb2b657422b
parent0916d9f96b10c3dad5d9840c6050e861bf22d887 (diff)
Fix QML snippet in docs
Add a missing id property in the snippet and remove another one that's not being used. Fixes: QTBUG-96984 Pick-to: 6.2 Change-Id: I13d1c64fe72dc5fc9d50e2817e9df11d9148b3c5 Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
-rw-r--r--src/multimedia/playback/qmediaplayer.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/multimedia/playback/qmediaplayer.cpp b/src/multimedia/playback/qmediaplayer.cpp
index d76f3fd0d..382743d48 100644
--- a/src/multimedia/playback/qmediaplayer.cpp
+++ b/src/multimedia/playback/qmediaplayer.cpp
@@ -95,7 +95,6 @@ QT_BEGIN_NAMESPACE
audioOutput: AudioOutput {}
}
MouseArea {
- id: playArea
anchors.fill: parent
onPressed: { playMusic.play() }
}
@@ -115,11 +114,11 @@ QT_BEGIN_NAMESPACE
}
VideoOutput {
+ id: videoOutput
anchors.fill: parent
}
MouseArea {
- id: playArea
anchors.fill: parent
onPressed: mediaplayer.play();
}