mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-07-03 15:15:27 +02:00
misc: fix argument warning for non-debug builds
The `test` option is not used in non-debug builds. Change-Id: I25eef5b414f987ae4acc435213173f8c78390866
This commit is contained in:
parent
5b92e4708a
commit
bd45d6a406
1 changed files with 3 additions and 3 deletions
|
@ -425,7 +425,8 @@ MainApplication::initQmlLayer()
|
||||||
&screenInfo_,
|
&screenInfo_,
|
||||||
this);
|
this);
|
||||||
|
|
||||||
QUrl url;
|
QUrl url = u"qrc:/MainApplicationWindow.qml"_qs;
|
||||||
|
#ifdef QT_DEBUG
|
||||||
if (parser_.isSet("test")) {
|
if (parser_.isSet("test")) {
|
||||||
// List the QML files in the project source tree.
|
// List the QML files in the project source tree.
|
||||||
const auto targetTestComponent = findResource(parser_.value("test"));
|
const auto targetTestComponent = findResource(parser_.value("test"));
|
||||||
|
@ -439,9 +440,8 @@ MainApplication::initQmlLayer()
|
||||||
engine_->rootContext()->setContextProperty("testWidth", testWidth);
|
engine_->rootContext()->setContextProperty("testWidth", testWidth);
|
||||||
engine_->rootContext()->setContextProperty("testHeight", testHeight);
|
engine_->rootContext()->setContextProperty("testHeight", testHeight);
|
||||||
url = u"qrc:/ComponentTestWindow.qml"_qs;
|
url = u"qrc:/ComponentTestWindow.qml"_qs;
|
||||||
} else {
|
|
||||||
url = u"qrc:/MainApplicationWindow.qml"_qs;
|
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
QObject::connect(
|
QObject::connect(
|
||||||
engine_.get(),
|
engine_.get(),
|
||||||
&QQmlApplicationEngine::objectCreationFailed,
|
&QQmlApplicationEngine::objectCreationFailed,
|
||||||
|
|
Loading…
Add table
Reference in a new issue