diff --git a/events/x11/x11events.cpp b/events/x11/x11events.cpp index 4533cf73..85d27469 100644 --- a/events/x11/x11events.cpp +++ b/events/x11/x11events.cpp @@ -22,7 +22,6 @@ #include "x11events.h" #include -#include #include #include @@ -30,7 +29,11 @@ #include #include +#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) #include +#else +#include +#endif enum { LEFTSHIFT = 1, diff --git a/events/x11/x11eventsplugin.cpp b/events/x11/x11eventsplugin.cpp index d45accd3..b139b8b9 100644 --- a/events/x11/x11eventsplugin.cpp +++ b/events/x11/x11eventsplugin.cpp @@ -22,7 +22,12 @@ #include "x11events.h" #include + +#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) #include +#else +#include +#endif K_PLUGIN_CLASS(X11EventsPlugin) diff --git a/framebuffers/xcb/xcb_framebuffer.cpp b/framebuffers/xcb/xcb_framebuffer.cpp index 76306057..313420b8 100644 --- a/framebuffers/xcb/xcb_framebuffer.cpp +++ b/framebuffers/xcb/xcb_framebuffer.cpp @@ -18,12 +18,16 @@ #include #include -#include #include #include #include #include +#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) +#include +#else +#include +#endif class KrfbXCBEventFilter: public QAbstractNativeEventFilter { diff --git a/krfb/main.cpp b/krfb/main.cpp index 3aa88e43..d2754afd 100644 --- a/krfb/main.cpp +++ b/krfb/main.cpp @@ -30,7 +30,12 @@ #include #include + +#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) #include +#else +#include +#endif #include #include diff --git a/krfb/rfbserver.cpp b/krfb/rfbserver.cpp index 2a289b5c..a19efc73 100644 --- a/krfb/rfbserver.cpp +++ b/krfb/rfbserver.cpp @@ -24,7 +24,12 @@ #include #include #include + +#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) #include +#else +#include +#endif struct RfbServer::Private {