summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Eliasson <andreas.eliasson@qt.io>2023-01-09 10:56:55 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-01-09 19:30:09 +0000
commit1cbc24928224bfc6c2d6114d22558a5fe4bd1a80 (patch)
tree93edc52f3630c95aa8f264f86697e9ecf6541f02
parent618b4bcde8c41fc8cd477548f32787ccf9bd0554 (diff)
downloadqtmultimedia-1cbc24928224bfc6c2d6114d22558a5fe4bd1a80.tar.gz
Doc: Use correct prop and enum const in code snippet
* There is no MediaRecorder.RecordingStatus constant, so change to MediaRecorder.RecordingState. * There's no status prop, so change this to recorderState. Fixes: QTBUG-97265 Change-Id: Iad40b161f86a0c386f745ce7d293a81718f90c6f Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> (cherry picked from commit 108cda751aab4a753c1bfac73d2941f02abdfa49) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/multimedia/recording/qmediarecorder.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/multimedia/recording/qmediarecorder.cpp b/src/multimedia/recording/qmediarecorder.cpp
index 45c8c7546..6f32c1972 100644
--- a/src/multimedia/recording/qmediarecorder.cpp
+++ b/src/multimedia/recording/qmediarecorder.cpp
@@ -70,14 +70,14 @@ QT_BEGIN_NAMESPACE
\qml
CameraButton {
text: "Record"
- visible: recorder.status !== MediaRecorder.RecordingStatus
+ visible: recorder.recorderState !== MediaRecorder.RecordingState
onClicked: recorder.record()
}
CameraButton {
id: stopButton
text: "Stop"
- visible: recorder.status === MediaRecorder.RecordingStatus
+ visible: recorder.recorderState === MediaRecorder.RecordingState
onClicked: recorder.stop()
}
\endqml