mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-10 12:54:30 +00:00
use qWarning/qCritical on QrCodeScanner info/errors
This commit is contained in:
parent
c9daab71bf
commit
7283fe41c2
1 changed files with 2 additions and 2 deletions
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 a new issue