Commit fec00e29 authored by Kai Koehne's avatar Kai Koehne

Simplify templates to use qrc:/ instead of qrc:///

Both forms are functionally equivalent, but the official documentation
favors the shorter one.

Change-Id: I2b6fccfafc2474f5b61ed6dce460b0472a63854c
Reviewed-by: default avatarJarek Kobus <jaroslaw.kobus@digia.com>
Reviewed-by: default avatarAlessandro Portale <alessandro.portale@digia.com>
parent 42ec4ad5
......@@ -8,7 +8,7 @@ int main(int argc, char *argv[])
QtQuick1ApplicationViewer viewer;
viewer.addImportPath(QLatin1String("modules")); // ADDIMPORTPATH
viewer.setOrientation(QtQuick1ApplicationViewer::ScreenOrientationAuto); // ORIENTATION
viewer.setMainQmlFile(QLatin1String("qrc:///main.qml")); // MAINQML
viewer.setMainQmlFile(QLatin1String("qrc:/main.qml")); // MAINQML
viewer.showExpanded();
return app.exec();
......
......@@ -6,7 +6,7 @@ int main(int argc, char *argv[])
QGuiApplication app(argc, argv);
QQmlApplicationEngine engine;
engine.load(QUrl(QStringLiteral("qrc:///main.qml")));
engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
return app.exec();
}
......@@ -6,7 +6,7 @@ int main(int argc, char *argv[])
QGuiApplication app(argc, argv);
QQmlApplicationEngine engine;
engine.load(QUrl(QStringLiteral("qrc:///main.qml")));
engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
return app.exec();
}
......@@ -6,7 +6,7 @@ int main(int argc, char *argv[])
QApplication app(argc, argv);
QQmlApplicationEngine engine;
engine.load(QUrl(QStringLiteral("qrc:///main.qml")));
engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
return app.exec();
}
......@@ -6,7 +6,7 @@ int main(int argc, char *argv[])
QApplication app(argc, argv);
QQmlApplicationEngine engine;
engine.load(QUrl(QStringLiteral("qrc:///main.qml")));
engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
return app.exec();
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment