From 7fe2b08bf95c81914c03feaba880c8e998ac7b05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Tue, 27 May 2014 09:33:34 +0200 Subject: [PATCH] Call KAboutData::setApplicationData That way we don't have to specifiy name et all multiple times. --- main.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/main.cpp b/main.cpp index a3ce899d2b..1593413d34 100644 --- a/main.cpp +++ b/main.cpp @@ -488,10 +488,6 @@ KWIN_EXPORT int kdemain(int argc, char * argv[]) KWin::Application a(argc, argv); - a.setApplicationName(QStringLiteral(KWIN_NAME)); - a.setApplicationVersion(QStringLiteral(KWIN_VERSION_STRING)); - a.setApplicationDisplayName(i18n("KWin")); - KAboutData aboutData(QStringLiteral(KWIN_NAME), // The program name used internally i18n("KWin"), // A displayable program name string QStringLiteral(KWIN_VERSION_STRING), // The program version string @@ -504,6 +500,7 @@ KWIN_EXPORT int kdemain(int argc, char * argv[]) aboutData.addAuthor(i18n("Daniel M. Duley"), QString(), QStringLiteral("mosfet@kde.org")); aboutData.addAuthor(i18n("Luboš Luňák"), QString(), QStringLiteral("l.lunak@kde.org")); aboutData.addAuthor(i18n("Martin Gräßlin"), i18n("Maintainer"), QStringLiteral("mgraesslin@kde.org")); + KAboutData::setApplicationData(aboutData); QCommandLineOption lockOption(QStringLiteral("lock"), i18n("Disable configuration options")); QCommandLineOption replaceOption(QStringLiteral("replace"), i18n("Replace already-running ICCCM2.0-compliant window manager"));