Commit 23e84cf1 authored by Luigi Toscano's avatar Luigi Toscano

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).
parent 41f14619
...@@ -45,9 +45,16 @@ int main(int argc, char *argv[]) ...@@ -45,9 +45,16 @@ int main(int argc, char *argv[])
aboutData.addCredit(i18n("Fabrice Mous"),i18n("For the Dutch translation")); aboutData.addCredit(i18n("Fabrice Mous"),i18n("For the Dutch translation"));
aboutData.addCredit(i18n("Germain Chazot"),i18n("For the French 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; QCommandLineParser parser;
aboutData.setupCommandLine(&parser); aboutData.setupCommandLine(&parser);
KAboutData::setApplicationData(aboutData);
parser.addVersionOption(); parser.addVersionOption();
parser.addHelpOption(); parser.addHelpOption();
......
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