mirror of
https://github.com/monero-project/monero-gui.git
synced 2026-04-03 17:07:26 -04:00
workflows: check if QML loads successfully
This commit is contained in:
7
main.cpp
7
main.cpp
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user