Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KAlarm
Commits
0c7fe668
Commit
0c7fe668
authored
Nov 03, 2022
by
David Jarvie
Browse files
Tidy up now that minimum Qt6 version is 6.4
parent
2f293cc1
Pipeline
#260835
passed with stage
in 1 minute and 32 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
0c7fe668
...
...
@@ -137,7 +137,7 @@ if (NOT APPLE)
if
(
QT_MAJOR_VERSION STREQUAL
"5"
)
find_package
(
Qt5X11Extras
${
QT_REQUIRED_VERSION
}
REQUIRED NO_MODULE
)
else
()
find_package
(
Qt
${
QT_MAJOR_VERSION
}
${
QT_REQUIRED_VERSION
}
CONFIG REQUIRED Gui
)
# qtx11extras_p.h for Qt6 < 6.2
find_package
(
Qt
${
QT_MAJOR_VERSION
}
${
QT_REQUIRED_VERSION
}
CONFIG REQUIRED Gui
)
endif
()
add_feature_info
(
ENABLE_X11
${
ENABLE_X11
}
"Enable use of X11"
)
endif
()
...
...
src/messagewindow.cpp
View file @
0c7fe668
...
...
@@ -36,12 +36,10 @@
#if ENABLE_X11
#include
<KWindowInfo>
#include
<netwm.h>
#if QT_VERSION >= QT_VERSION_CHECK(6, 2, 0)
#include
<QGuiApplication>
#elif QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
#include
<private/qtx11extras_p.h>
#else
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
#include
<QX11Info>
#else
#include
<QGuiApplication>
#endif
#endif
#include
<QTextBrowser>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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