Adding version information to supportInformation

* KWin version as defined by KDE4WORKSPACE_VERSION
* KDE SC version (compile)
* KDE SC version (runtime)
* Qt version (runtime)

REVIEW: 108320
icc-effect-5.14.5
Martin Gräßlin 2013-01-10 09:55:52 +01:00
parent d5a0dd56cf
commit 5ccd4f2db8
2 changed files with 16 additions and 0 deletions

View File

@ -8,3 +8,4 @@
#cmakedefine KWIN_BUILD_OXYGEN 1
#define KWIN_NAME "${KWIN_NAME}"
#define KWIN_CONFIG "${KWIN_NAME}rc"
#define KWIN_VERSION_STRING "${KDE4WORKSPACE_VERSION}"

View File

@ -42,6 +42,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <kaction.h>
#include <kconfiggroup.h>
#include <kcmdlineargs.h>
#include <kdeversion.h>
#include <QtDBus/QtDBus>
#include "client.h"
@ -2171,6 +2172,20 @@ QString Workspace::supportInformation() const
// all following strings are intended for support. They need to be pasted to e.g forums.kde.org
// it is expected that the support will happen in English language or that the people providing
// help understand English. Because of that all texts are not translated
support.append("Version\n");
support.append("=======\n");
support.append("KWin version: ");
support.append(KWIN_VERSION_STRING);
support.append('\n');
support.append("KDE SC version (runtime): ");
support.append(KDE::versionString());
support.append('\n');
support.append("KDE SC version (compile): ");
support.append(KDE_VERSION_STRING);
support.append('\n');
support.append("Qt Version: ");
support.append(qVersion());
support.append("\n\n");
support.append("Options\n");
support.append("=======\n");
const QMetaObject *metaOptions = options->metaObject();