Skip to content
Snippets Groups Projects
Commit bd45d6a4 authored by Andreas Traczyk's avatar Andreas Traczyk
Browse files

misc: fix argument warning for non-debug builds

The `test` option is not used in non-debug builds.

Change-Id: I25eef5b414f987ae4acc435213173f8c78390866
parent 5b92e470
No related branches found
No related tags found
No related merge requests found
......@@ -425,7 +425,8 @@ MainApplication::initQmlLayer()
&screenInfo_,
this);
QUrl url;
QUrl url = u"qrc:/MainApplicationWindow.qml"_qs;
#ifdef QT_DEBUG
if (parser_.isSet("test")) {
// List the QML files in the project source tree.
const auto targetTestComponent = findResource(parser_.value("test"));
......@@ -439,9 +440,8 @@ MainApplication::initQmlLayer()
engine_->rootContext()->setContextProperty("testWidth", testWidth);
engine_->rootContext()->setContextProperty("testHeight", testHeight);
url = u"qrc:/ComponentTestWindow.qml"_qs;
} else {
url = u"qrc:/MainApplicationWindow.qml"_qs;
}
#endif
QObject::connect(
engine_.get(),
&QQmlApplicationEngine::objectCreationFailed,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment