diff options
author | Andreas Eliasson <andreas.eliasson@qt.io> | 2023-01-09 10:56:55 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2023-01-09 20:15:09 +0000 |
commit | 8209431ab483d7141a9c5eab140f51d263b5613e (patch) | |
tree | fad1c297f7079052b924b1dbfd1ae22fe6d0d5b3 | |
parent | e564564e722d02e22a7ee3a688e2db8a7aae6f5c (diff) |
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.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/multimedia/recording/qmediarecorder.cpp b/src/multimedia/recording/qmediarecorder.cpp index f143faa1f..b7f06ddeb 100644 --- a/src/multimedia/recording/qmediarecorder.cpp +++ b/src/multimedia/recording/qmediarecorder.cpp @@ -106,14 +106,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 |