1
mirror of https://github.com/monero-project/monero-gui synced 2024-12-01 08:11:54 +01:00

use qWarning/qCritical on QrCodeScanner info/errors

This commit is contained in:
pazos 2018-05-08 18:19:55 +02:00
parent c9daab71bf
commit 7283fe41c2

View File

@ -294,13 +294,13 @@ int main(int argc, char *argv[])
QObject *qmlCamera = rootObject->findChild<QObject*>("qrCameraQML");
if (qmlCamera)
{
qDebug() << "QrCodeScanner : object found";
qWarning() << "QrCodeScanner : object found";
QCamera *camera_ = qvariant_cast<QCamera*>(qmlCamera->property("mediaObject"));
QObject *qmlFinder = rootObject->findChild<QObject*>("QrFinder");
qobject_cast<QrCodeScanner*>(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)));