summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Srebrny <piotr.srebrny@qt.io>2021-09-03 17:33:45 +0200
committerLars Knoll <lars.knoll@qt.io>2021-11-02 14:37:58 +0100
commitf0a82cc018df99d0fcc698dc43ab23e36a674893 (patch)
tree9ed662293dcd3c4200cc34bdb12ee18c42ee0da3
parent4a0c04b1539089d041875662ce46728d2a8796f5 (diff)
downloadqtmultimedia-f0a82cc018df99d0fcc698dc43ab23e36a674893.tar.gz
Set captured image path to enable image preview
Change-Id: I048e211a8e05a5640fa69b319c68db032d6f9a48 Reviewed-by: Lars Knoll <lars.knoll@qt.io> (cherry picked from commit bfee0f9398afddd27a522102c73ee5327a388b25) Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io> Reviewed-by: Piotr Srebrny <piotr.srebrny@qt.io>
-rw-r--r--src/multimediaquick/qquickimagecapture.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/multimediaquick/qquickimagecapture.cpp b/src/multimediaquick/qquickimagecapture.cpp
index 582bfead3..95519ef28 100644
--- a/src/multimediaquick/qquickimagecapture.cpp
+++ b/src/multimediaquick/qquickimagecapture.cpp
@@ -178,6 +178,7 @@ void QQuickImageCapture::_q_imageCaptured(int id, const QImage &preview)
{
QString previewId = QString::fromLatin1("preview_%1").arg(id);
QQuickImagePreviewProvider::registerPreview(previewId, preview);
+ m_capturedImagePath = QString::fromLatin1("image://camera/%2").arg(previewId);
m_lastImage = preview;
emit previewChanged();
}