Verified Commit 6763bde0 authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

Use version information from rlease tools

parent 6e1f1a98
project(kmousetool)
# KDE Application Version, managed by release script
set (RELEASE_SERVICE_VERSION_MAJOR "21")
set (RELEASE_SERVICE_VERSION_MINOR "07")
set (RELEASE_SERVICE_VERSION_MICRO "20")
set (RELEASE_SERVICE_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}.${RELEASE_SERVICE_VERSION_MINOR}.${RELEASE_SERVICE_VERSION_MICRO}")
cmake_minimum_required (VERSION 3.16 FATAL_ERROR)
set(QT_MIN_VERSION "5.15.0")
set(KF5_MIN_VERSION "5.83.0")
......
......@@ -14,6 +14,7 @@ ki18n_wrap_ui(kmousetool_SRCS kmousetoolui.ui )
add_executable(kmousetool ${kmousetool_SRCS})
target_compile_definitions(kmousetool PRIVATE -DKMOUSETOOL_VERSION="${RELEASE_SERVICE_VERSION}")
target_link_libraries(kmousetool
Qt::Core
Qt::Gui
......
......@@ -445,7 +445,6 @@ void KMouseTool::saveOptions()
int y = p.y();
KConfigGroup cfg = KSharedConfig::openConfig()->group("ProgramOptions");
cfg.writeEntry("Version", KMOUSETOOL_VERSION);
cfg = KSharedConfig::openConfig()->group("UserOptions");
cfg.writeEntry("x", x);
cfg.writeEntry("y", y);
......
......@@ -26,8 +26,6 @@
#include <QTimerEvent>
#include <QWidget>
#include "version.h"
#include <KStatusNotifierItem>
#include "mtstroke.h"
#include "ui_kmousetoolui.h"
......
#ifndef kmousetool_version_h
#define kmousetool_version_h
#define KMOUSETOOL_VERSION "1.12"
#endif /*kmousetool_version_h*/
Supports Markdown
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