summaryrefslogtreecommitdiffstats
path: root/src/compositor/compositor_api/qwaylandkeyboard_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2016-11-15 15:59:13 +0100
committerLars Knoll <lars.knoll@qt.io>2016-11-23 08:42:05 +0000
commit2333c58fff009435503c3b7ef3d86569227056eb (patch)
treec98fd555af28f6324b24a3884bc8f40fa18bde24 /src/compositor/compositor_api/qwaylandkeyboard_p.h
parent1d5b44cbb1e834bc8db94d8ec1ac140b8ca9ed37 (diff)
Use the feature system internally
Get rid of almost all DEFINES += ... in the pro files, instead use the proper QT_CONFIG() macro to determine whether a feature is available. Change-Id: I867769be2085c6ba93b6815e223e2b89edcb245d Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'src/compositor/compositor_api/qwaylandkeyboard_p.h')
-rw-r--r--src/compositor/compositor_api/qwaylandkeyboard_p.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/compositor/compositor_api/qwaylandkeyboard_p.h b/src/compositor/compositor_api/qwaylandkeyboard_p.h
index fc43853cc..b65dab440 100644
--- a/src/compositor/compositor_api/qwaylandkeyboard_p.h
+++ b/src/compositor/compositor_api/qwaylandkeyboard_p.h
@@ -49,7 +49,7 @@
// We mean it.
//
-#include <QtWaylandCompositor/qwaylandexport.h>
+#include <QtWaylandCompositor/private/qtwaylandcompositorglobal_p.h>
#include <QtWaylandCompositor/qwaylandseat.h>
#include <QtWaylandCompositor/qwaylandkeyboard.h>
#include <QtWaylandCompositor/qwaylanddestroylistener.h>
@@ -59,7 +59,7 @@
#include <QtCore/QVector>
-#ifndef QT_NO_WAYLAND_XKB
+#if QT_CONFIG(xkbcommon_evdev)
#include <xkbcommon/xkbcommon.h>
#endif
@@ -83,7 +83,7 @@ public:
void modifiers(uint32_t serial, uint32_t mods_depressed,
uint32_t mods_latched, uint32_t mods_locked, uint32_t group);
-#ifndef QT_NO_WAYLAND_XKB
+#if QT_CONFIG(xkbcommon_evdev)
struct xkb_state *xkbState() const { return xkb_state; }
uint32_t xkbModsMask() const { return modsDepressed | modsLatched | modsLocked; }
#endif
@@ -102,7 +102,7 @@ protected:
void keyboard_release(Resource *resource) Q_DECL_OVERRIDE;
private:
-#ifndef QT_NO_WAYLAND_XKB
+#if QT_CONFIG(xkbcommon_evdev)
void initXKB();
void createXKBKeymap();
void createXKBState(xkb_keymap *keymap);
@@ -124,7 +124,7 @@ private:
uint32_t group;
bool pendingKeymap;
-#ifndef QT_NO_WAYLAND_XKB
+#if QT_CONFIG(xkbcommon_evdev)
size_t keymap_size;
int keymap_fd;
char *keymap_area;