summaryrefslogtreecommitdiffstats
path: root/tests/auto/unit/mockbackend/mockcameraimagecapturecontrol.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2021-03-01 16:51:18 +0100
committerLars Knoll <lars.knoll@qt.io>2021-03-16 07:41:30 +0000
commite7702afc9dfa6e69b1b05d68a38248ccc6b6dd87 (patch)
tree8d8cfbd6b2ac894dcbb250d9084c7cff099a0b65 /tests/auto/unit/mockbackend/mockcameraimagecapturecontrol.h
parent7ac9e201ab41f76763477821216665d474ce5ec6 (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.h2
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)
{