summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--examples/qmlbars/main.cpp5
-rw-r--r--examples/qmlscatter/main.cpp4
-rw-r--r--examples/qmlsurface/main.cpp3
3 files changed, 3 insertions, 9 deletions
diff --git a/examples/qmlbars/main.cpp b/examples/qmlbars/main.cpp
index 1a3fcddc..58cd5e32 100644
--- a/examples/qmlbars/main.cpp
+++ b/examples/qmlbars/main.cpp
@@ -33,10 +33,9 @@ int main(int argc, char *argv[])
viewer.addImportPath(QString::fromLatin1("assets:/qml"));
viewer.engine()->addPluginPath(QString::fromLatin1("%1/../%2").arg(QDir::homePath(),
QString::fromLatin1("lib")));
-#else
- viewer.addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(),
- QString::fromLatin1("qml")));
#endif
+ viewer.setTitle(QStringLiteral("Monthly income/expenses"));
+
viewer.setSource(QUrl("qrc:/qml/main.qml"));
viewer.setResizeMode(QQuickView::SizeRootObjectToView);
viewer.show();
diff --git a/examples/qmlscatter/main.cpp b/examples/qmlscatter/main.cpp
index e04ceab5..cc3fa4c3 100644
--- a/examples/qmlscatter/main.cpp
+++ b/examples/qmlscatter/main.cpp
@@ -33,10 +33,8 @@ int main(int argc, char *argv[])
viewer.addImportPath(QString::fromLatin1("assets:/qml"));
viewer.engine()->addPluginPath(QString::fromLatin1("%1/../%2").arg(QDir::homePath(),
QString::fromLatin1("lib")));
-#else
- viewer.addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(),
- QString::fromLatin1("qml")));
#endif
+ viewer.setTitle(QStringLiteral("QML scatter example"));
//! [0]
viewer.setSource(QUrl("qrc:/qml/main.qml"));
//! [0]
diff --git a/examples/qmlsurface/main.cpp b/examples/qmlsurface/main.cpp
index 2c953fe7..6b859158 100644
--- a/examples/qmlsurface/main.cpp
+++ b/examples/qmlsurface/main.cpp
@@ -33,9 +33,6 @@ int main(int argc, char *argv[])
viewer.addImportPath(QString::fromLatin1("assets:/qml"));
viewer.engine()->addPluginPath(QString::fromLatin1("%1/../%2").arg(QDir::homePath(),
QString::fromLatin1("lib")));
-#else
- viewer.addImportPath(QString::fromLatin1("%1/%2").arg(QCoreApplication::applicationDirPath(),
- QString::fromLatin1("qml")));
#endif
viewer.setTitle(QStringLiteral("Tycho crater on the Moon (height exaggerated)"));
viewer.setSource(QUrl("qrc:/qml/main.qml"));