mirror of
https://github.com/monero-project/monero-gui
synced 2025-01-07 18:56:24 +01:00
use qWarning/qCritical on QrCodeScanner info/errors
This commit is contained in:
parent
c9daab71bf
commit
7283fe41c2
4
main.cpp
4
main.cpp
@ -294,13 +294,13 @@ int main(int argc, char *argv[])
|
|||||||
QObject *qmlCamera = rootObject->findChild<QObject*>("qrCameraQML");
|
QObject *qmlCamera = rootObject->findChild<QObject*>("qrCameraQML");
|
||||||
if (qmlCamera)
|
if (qmlCamera)
|
||||||
{
|
{
|
||||||
qDebug() << "QrCodeScanner : object found";
|
qWarning() << "QrCodeScanner : object found";
|
||||||
QCamera *camera_ = qvariant_cast<QCamera*>(qmlCamera->property("mediaObject"));
|
QCamera *camera_ = qvariant_cast<QCamera*>(qmlCamera->property("mediaObject"));
|
||||||
QObject *qmlFinder = rootObject->findChild<QObject*>("QrFinder");
|
QObject *qmlFinder = rootObject->findChild<QObject*>("QrFinder");
|
||||||
qobject_cast<QrCodeScanner*>(qmlFinder)->setSource(camera_);
|
qobject_cast<QrCodeScanner*>(qmlFinder)->setSource(camera_);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
qDebug() << "QrCodeScanner : something went wrong !";
|
qCritical() << "QrCodeScanner : something went wrong !";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
QObject::connect(eventFilter, SIGNAL(sequencePressed(QVariant,QVariant)), rootObject, SLOT(sequencePressed(QVariant,QVariant)));
|
QObject::connect(eventFilter, SIGNAL(sequencePressed(QVariant,QVariant)), rootObject, SLOT(sequencePressed(QVariant,QVariant)));
|
||||||
|
Loading…
Reference in New Issue
Block a user