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:
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");
|
||||
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)));
|
||||
|
Loading…
Reference in New Issue
Block a user