summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuigi Toscano <[email protected]>2017-08-06 18:25:11 +0200
committerLuigi Toscano <[email protected]>2017-08-06 18:27:27 +0200
commit23e84cf1962a93aceb7d59faa3adcfef0f8ff9a5 (patch)
tree4c57ef1056aafa65d9852ca2c25761ebf66cf3fb
parent41f14619abfd28abcd824a076b81b39b30da0a71 (diff)
Add more application metadata (desktop file, icon, etc)
- explicitly set the application domain, the application name and the name of the desktop file (better safe...); - set the icon (which is not relevant for Wayland, where the icon is read from the desktop file which has the correct name, but still relevant elsewhere).
-rw-r--r--main.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index 68e81d0..6881654 100644
--- a/main.cpp
+++ b/main.cpp
@@ -45,9 +45,16 @@ int main(int argc, char *argv[])
aboutData.addCredit(i18n("Fabrice Mous"),i18n("For the Dutch translation"));
aboutData.addCredit(i18n("Germain Chazot"),i18n("For the French translation"));
+ aboutData.setOrganizationDomain("kde.org");
+ aboutData.setDesktopFileName(QStringLiteral("org.kde.kimagemapeditor"));
+ KAboutData::setApplicationData(aboutData);
+
+ app.setOrganizationName(QStringLiteral("KDE"));
+
+ app.setWindowIcon(QIcon::fromTheme("kimagemapeditor", app.windowIcon()));
+
QCommandLineParser parser;
aboutData.setupCommandLine(&parser);
- KAboutData::setApplicationData(aboutData);
parser.addVersionOption();
parser.addHelpOption();