From 7283fe41c229e7f0a9dd9199e6e45a15c526931b Mon Sep 17 00:00:00 2001 From: pazos Date: Tue, 8 May 2018 18:19:55 +0200 Subject: [PATCH] use qWarning/qCritical on QrCodeScanner info/errors --- main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.cpp b/main.cpp index cd20432a..a2274128 100644 --- a/main.cpp +++ b/main.cpp @@ -294,13 +294,13 @@ int main(int argc, char *argv[]) QObject *qmlCamera = rootObject->findChild("qrCameraQML"); if (qmlCamera) { - qDebug() << "QrCodeScanner : object found"; + qWarning() << "QrCodeScanner : object found"; QCamera *camera_ = qvariant_cast(qmlCamera->property("mediaObject")); QObject *qmlFinder = rootObject->findChild("QrFinder"); qobject_cast(qmlFinder)->setSource(camera_); } else - qDebug() << "QrCodeScanner : something went wrong !"; + qCritical() << "QrCodeScanner : something went wrong !"; #endif QObject::connect(eventFilter, SIGNAL(sequencePressed(QVariant,QVariant)), rootObject, SLOT(sequencePressed(QVariant,QVariant)));