From f7ff03f30bce2a564fc650ed0775b77df63b41a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Thu, 5 Dec 2013 17:18:50 +0100 Subject: [PATCH] [kwin] Remove usage of KDE_VERSION_STRING Replaced by KWIN_VERSION_STRING where useful. Support information no longer contains the SC version number. We have to see whether there will be a useful framework based platform information. --- main.cpp | 7 +++---- workspace.cpp | 7 ------- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/main.cpp b/main.cpp index 621a5490be..6629db940c 100644 --- a/main.cpp +++ b/main.cpp @@ -32,7 +32,6 @@ along with this program. If not, see . #include // KDE -#include #include #include #include @@ -373,7 +372,7 @@ bool XcbEventFilter::nativeEventFilter(const QByteArray &eventType, void *messag } // namespace -static const char version[] = KDE_VERSION_STRING; +static const char version[] = KWIN_VERSION_STRING; static const char description[] = I18N_NOOP("KDE window manager"); extern "C" @@ -463,13 +462,13 @@ KDE_EXPORT int kdemain(int argc, char * argv[]) KWin::Application a(argc, argv); a.setApplicationName(QStringLiteral(KWIN_NAME)); - a.setApplicationVersion(QStringLiteral(KDE_VERSION_STRING)); + a.setApplicationVersion(QStringLiteral(KWIN_VERSION_STRING)); a.setApplicationDisplayName(i18n("KWin")); KAboutData aboutData(QStringLiteral(KWIN_NAME), // The program name used internally QString(), // The message catalog name. If null, program name is used instead i18n("KWin"), // A displayable program name string - QStringLiteral(KDE_VERSION_STRING), // The program version string + QStringLiteral(KWIN_VERSION_STRING), // The program version string i18n(description), // Short description of what the app does KAboutData::License_GPL, // The license this code is released under i18n("(c) 1999-2013, The KDE Developers")); // Copyright Statement diff --git a/workspace.cpp b/workspace.cpp index b0c0bd9d42..29350e9bc6 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -61,7 +61,6 @@ along with this program. If not, see . #include "xcbutils.h" #include "main.h" // KDE -#include #include #include #include @@ -1423,12 +1422,6 @@ QString Workspace::supportInformation() const support.append(QStringLiteral("KWin version: ")); support.append(QStringLiteral(KWIN_VERSION_STRING)); support.append(QStringLiteral("\n")); - support.append(QStringLiteral("KDE SC version (runtime): ")); - support.append(QString::fromUtf8(KDE::versionString())); - support.append(QStringLiteral("\n")); - support.append(QStringLiteral("KDE SC version (compile): ")); - support.append(QStringLiteral(KDE_VERSION_STRING)); - support.append(QStringLiteral("\n")); support.append(QStringLiteral("Qt Version: ")); support.append(QString::fromUtf8(qVersion())); support.append(QStringLiteral("\n\n"));