diff options
author | Marius Vlad <marius.vlad@collabora.com> | 2020-04-13 13:02:35 +0300 |
---|---|---|
committer | Marius Vlad <marius.vlad@collabora.com> | 2020-04-13 17:25:03 +0300 |
commit | 2723deaa4c4537e33071b42167b5512693479e50 (patch) | |
tree | 679c7405225e0b6107f7e603d869a4d98ce64896 /sample/app | |
parent | 28a64b2fb943ec232a9464ee5c092cb1cb0c5e69 (diff) |
sample/app: Allow to identify the application
While this doesn't seem necessary launcher will need the app_id
set to switch to it later on.
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Diffstat (limited to 'sample/app')
-rw-r--r-- | sample/app/main.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/sample/app/main.cpp b/sample/app/main.cpp index c47c869..f3bd99c 100644 --- a/sample/app/main.cpp +++ b/sample/app/main.cpp @@ -28,12 +28,14 @@ int main(int argc, char *argv[]) { QGuiApplication app(argc, argv); - app.setApplicationName("onstestapp"); - app.setApplicationVersion(QStringLiteral("3.99.3")); - app.setOrganizationDomain(QStringLiteral("automotivelinux.org")); - app.setOrganizationName(QStringLiteral("AutomotiveGradeLinux")); - QQuickStyle::setStyle("AGL"); + //app.setApplicationName("onstestapp"); + //app.setApplicationVersion(QStringLiteral("3.99.3")); + //app.setOrganizationDomain(QStringLiteral("automotivelinux.org")); + //app.setOrganizationName(QStringLiteral("AutomotiveGradeLinux")); + + //QQuickStyle::setStyle("AGL"); + app.setDesktopFileName("onstestapp"); QCommandLineParser parser; parser.addPositionalArgument("port", app.translate("main", "port for binding")); |