summaryrefslogtreecommitdiffstats
path: root/src/plugins/winrt/qwinrtcameraimagecapturecontrol.cpp
diff options
context:
space:
mode:
authorMaurice Kalinowski <maurice.kalinowski@theqtcompany.com>2016-04-15 07:36:34 +0200
committerMaurice Kalinowski <maurice.kalinowski@qt.io>2016-04-22 11:44:40 +0000
commit65c9e24c10c7fe715c897572d8f3e5210ea13e07 (patch)
tree63806484d3b2bd1bf7dc1e0cafecb98e1dc58e27 /src/plugins/winrt/qwinrtcameraimagecapturecontrol.cpp
parent5206d3783645ad4caf189ab77ce82f360d1e45bc (diff)
winrt: Add categorized logging to camera control
Change-Id: I6d823ac07950212d766905c9409469f2b1b84954 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io> Reviewed-by: Yoann Lopes <yoann.lopes@qt.io>
Diffstat (limited to 'src/plugins/winrt/qwinrtcameraimagecapturecontrol.cpp')
-rw-r--r--src/plugins/winrt/qwinrtcameraimagecapturecontrol.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/winrt/qwinrtcameraimagecapturecontrol.cpp b/src/plugins/winrt/qwinrtcameraimagecapturecontrol.cpp
index 67f12f264..8ae7f37a9 100644
--- a/src/plugins/winrt/qwinrtcameraimagecapturecontrol.cpp
+++ b/src/plugins/winrt/qwinrtcameraimagecapturecontrol.cpp
@@ -118,6 +118,7 @@ public:
QWinRTCameraImageCaptureControl::QWinRTCameraImageCaptureControl(QWinRTCameraControl *parent)
: QCameraImageCaptureControl(parent), d_ptr(new QWinRTCameraImageCaptureControlPrivate)
{
+ qCDebug(lcMMCamera) << __FUNCTION__ << parent;
Q_D(QWinRTCameraImageCaptureControl);
d->cameraControl = parent;
@@ -144,6 +145,7 @@ void QWinRTCameraImageCaptureControl::setDriveMode(QCameraImageCapture::DriveMod
int QWinRTCameraImageCaptureControl::capture(const QString &fileName)
{
+ qCDebug(lcMMCamera) << __FUNCTION__ << fileName;
Q_D(QWinRTCameraImageCaptureControl);
++d->currentCaptureId;
@@ -191,6 +193,7 @@ int QWinRTCameraImageCaptureControl::capture(const QString &fileName)
void QWinRTCameraImageCaptureControl::cancelCapture()
{
+ qCDebug(lcMMCamera) << __FUNCTION__;
Q_D(QWinRTCameraImageCaptureControl);
QHash<IAsyncAction *, CaptureRequest>::iterator it = d->requests.begin();
@@ -205,6 +208,7 @@ void QWinRTCameraImageCaptureControl::cancelCapture()
HRESULT QWinRTCameraImageCaptureControl::onCaptureCompleted(IAsyncAction *asyncInfo, AsyncStatus status)
{
+ qCDebug(lcMMCamera) << __FUNCTION__;
Q_D(QWinRTCameraImageCaptureControl);
if (status == Canceled || !d->requests.contains(asyncInfo))