|
|
|
@ -174,7 +174,10 @@ int main(int argc, char *argv[])
|
|
|
|
|
QCoreApplication::translate("main", "Log to specified file"),
|
|
|
|
|
QCoreApplication::translate("main", "file"));
|
|
|
|
|
|
|
|
|
|
QCommandLineOption testQmlOption("test-qml");
|
|
|
|
|
testQmlOption.setFlags(QCommandLineOption::HiddenFromHelp);
|
|
|
|
|
parser.addOption(logPathOption);
|
|
|
|
|
parser.addOption(testQmlOption);
|
|
|
|
|
parser.addHelpOption();
|
|
|
|
|
parser.process(app);
|
|
|
|
|
|
|
|
|
@ -405,6 +408,10 @@ int main(int argc, char *argv[])
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// QML loaded successfully.
|
|
|
|
|
if (parser.isSet(testQmlOption))
|
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
|
|
#ifdef WITH_SCANNER
|
|
|
|
|
QObject *qmlCamera = rootObject->findChild<QObject*>("qrCameraQML");
|
|
|
|
|
if (qmlCamera)
|
|
|
|
|