diff options
author | Lars Knoll <lars.knoll@qt.io> | 2021-03-01 16:51:18 +0100 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2021-03-16 07:41:30 +0000 |
commit | e7702afc9dfa6e69b1b05d68a38248ccc6b6dd87 (patch) | |
tree | 8d8cfbd6b2ac894dcbb250d9084c7cff099a0b65 /tests/auto/unit/mockbackend/mockcameraimagecapturecontrol.h | |
parent | 7ac9e201ab41f76763477821216665d474ce5ec6 (diff) |
Simplify state handling in QCamera and QMediaRecorder
Remove the loaded/unloaded states. Instead simply have
a boolean indicating whether the camera is active.
Change-Id: I1dad15f2c4f2f606f6d64320cea3763d1213a09b
Reviewed-by: Doris Verria <doris.verria@qt.io>
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'tests/auto/unit/mockbackend/mockcameraimagecapturecontrol.h')
-rw-r--r-- | tests/auto/unit/mockbackend/mockcameraimagecapturecontrol.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/unit/mockbackend/mockcameraimagecapturecontrol.h b/tests/auto/unit/mockbackend/mockcameraimagecapturecontrol.h index 3a4d0b10b..cf5544c07 100644 --- a/tests/auto/unit/mockbackend/mockcameraimagecapturecontrol.h +++ b/tests/auto/unit/mockbackend/mockcameraimagecapturecontrol.h @@ -50,7 +50,7 @@ public: { } - bool isReadyForCapture() const { return m_ready && m_cameraControl->state() == QCamera::ActiveState; } + bool isReadyForCapture() const { return m_ready && m_cameraControl->isActive(); } int capture(const QString &fileName) { |