Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Accessibility
KMouseTool
Commits
6763bde0
Verified
Commit
6763bde0
authored
Aug 14, 2021
by
Alexander Lohnau
💬
Browse files
Use version information from rlease tools
parent
6e1f1a98
Changes
5
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
6763bde0
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"
)
...
...
kmousetool/CMakeLists.txt
View file @
6763bde0
...
...
@@ -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
...
...
kmousetool/kmousetool.cpp
View file @
6763bde0
...
...
@@ -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
);
...
...
kmousetool/kmousetool.h
View file @
6763bde0
...
...
@@ -26,8 +26,6 @@
#include
<QTimerEvent>
#include
<QWidget>
#include
"version.h"
#include
<KStatusNotifierItem>
#include
"mtstroke.h"
#include
"ui_kmousetoolui.h"
...
...
kmousetool/version.h
deleted
100644 → 0
View file @
6e1f1a98
#ifndef kmousetool_version_h
#define kmousetool_version_h
#define KMOUSETOOL_VERSION "1.12"
#endif
/*kmousetool_version_h*/
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment