diff --git a/telldus-gui/CMakeLists.txt b/telldus-gui/CMakeLists.txt index 0bbc8e1b..15b2834b 100644 --- a/telldus-gui/CMakeLists.txt +++ b/telldus-gui/CMakeLists.txt @@ -6,8 +6,9 @@ if(COMMAND cmake_policy) cmake_policy(SET CMP0003 NEW) endif(COMMAND cmake_policy) -SET(PACKAGE_VERSION 2) -SET(PACKAGE_SOVERSION 2.0.0) +SET(PACKAGE_VERSION 2.0.900) +SET(PACKAGE_SOVERSION 2) +SET(DISPLAYED_VERSION ${PACKAGE_VERSION}) SET(UPDATE_TRANSLATIONS FALSE CACHE BOOL "Update source translation files (WARNING: make clean will delete the source .ts files! Danger!)") SET(LANGUAGES sv) diff --git a/telldus-gui/TelldusCenter/CMakeLists.txt b/telldus-gui/TelldusCenter/CMakeLists.txt index 103c6bd2..2d7cc33d 100644 --- a/telldus-gui/TelldusCenter/CMakeLists.txt +++ b/telldus-gui/TelldusCenter/CMakeLists.txt @@ -46,6 +46,8 @@ SET( telldus-center_LIBRARIES ${QT_LIBRARIES} ) +ADD_DEFINITIONS( -DVERSION="${DISPLAYED_VERSION}" ) + ######## Configurable options for the platform ######## diff --git a/telldus-gui/TelldusCenter/mainwindow.cpp b/telldus-gui/TelldusCenter/mainwindow.cpp index b4100dc9..06aebd89 100644 --- a/telldus-gui/TelldusCenter/mainwindow.cpp +++ b/telldus-gui/TelldusCenter/mainwindow.cpp @@ -16,6 +16,9 @@ #include "message.h" #include "plugintree.h" +#define VERSION_STRING_HELPER(X) #X +#define VERSION_STRING(X) VERSION_STRING_HELPER(X) + class MainWindowPrivate { public: QToolBar *pagesBar; @@ -123,8 +126,8 @@ void MainWindow::addWidget( const QString &page, const QIcon &icon, QWidget *wid void MainWindow::slotAboutApplication() { QMessageBox::about(this, tr("About Telldus Center"), - tr("
Copyright © 2009 Telldus Technologies AB
Copyright © 2010 Telldus Technologies AB