summaryrefslogtreecommitdiffstats
path: root/src/multimedia/platform/darwin/camera/avfstoragelocation.mm
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2021-02-10 16:15:46 +0100
committerLars Knoll <lars.knoll@qt.io>2021-02-17 08:26:40 +0000
commitf2607d51bba3076e51ff9f67cdbcee793c4f54d0 (patch)
tree947471211fbb2732dcbdbbe5cff3d5fc8505dd66 /src/multimedia/platform/darwin/camera/avfstoragelocation.mm
parenta8eb585f239c2e5c0a5fed8a1a279fbd076c8446 (diff)
Get rid of QCamera::CaptureMode
Whether we capture still images or Video should only depend on the outputs we have attached to the camera (QMediaRecoder and QCameraImageCapture). There's no need for a separate enum here. Change-Id: I852f5c752abd1184680ca868cb90e995d6d68b27 Reviewed-by: Doris Verria <doris.verria@qt.io> Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/multimedia/platform/darwin/camera/avfstoragelocation.mm')
-rw-r--r--src/multimedia/platform/darwin/camera/avfstoragelocation.mm6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/multimedia/platform/darwin/camera/avfstoragelocation.mm b/src/multimedia/platform/darwin/camera/avfstoragelocation.mm
index 46671e938..f2c223c82 100644
--- a/src/multimedia/platform/darwin/camera/avfstoragelocation.mm
+++ b/src/multimedia/platform/darwin/camera/avfstoragelocation.mm
@@ -59,7 +59,7 @@ AVFStorageLocation::~AVFStorageLocation()
* or specify the full actual path.
*/
QString AVFStorageLocation::generateFileName(const QString &requestedName,
- QCamera::CaptureMode mode,
+ Mode mode,
const QString &prefix,
const QString &ext) const
{
@@ -72,11 +72,11 @@ QString AVFStorageLocation::generateFileName(const QString &requestedName,
return requestedName;
}
-QDir AVFStorageLocation::defaultDir(QCamera::CaptureMode mode) const
+QDir AVFStorageLocation::defaultDir(Mode mode) const
{
QStringList dirCandidates;
- if (mode == QCamera::CaptureVideo) {
+ if (mode == Video) {
dirCandidates << QStandardPaths::writableLocation(QStandardPaths::MoviesLocation);
} else {
dirCandidates << QStandardPaths::writableLocation(QStandardPaths::PicturesLocation);