diff options
author | Gatis Paeglis <gatis.paeglis@qt.io> | 2018-09-22 13:14:23 +0200 |
---|---|---|
committer | Gatis Paeglis <gatis.paeglis@qt.io> | 2018-10-17 10:02:45 +0000 |
commit | d67214302f269242ae3d8d2b962fd91ec42c979e (patch) | |
tree | 797359110b434799337ae7f76c97c89b7b6e8e1d /src/plugins/platforms/xcb/qxcbkeyboard.h | |
parent | 5fe2ed48d60f383706274fa087f08a041c79dc73 (diff) |
xcb: qxcbconnection_basic
A basic base class that creates a connection and initializes
extensions. The goal was to reduce the size of qxcbconnection.h/cpp.
Made QXcbAtom into a class that handles atom initialization and
exposes the relevant APIs. Before this patch, all of that logic
was inside of qxcbconnection.h/cpp.
Change-Id: Ia893c3b31e2343dfbe62fe2aa6bfd0017abf46ea
Reviewed-by: Gatis Paeglis <gatis.paeglis@qt.io>
Diffstat (limited to 'src/plugins/platforms/xcb/qxcbkeyboard.h')
-rw-r--r-- | src/plugins/platforms/xcb/qxcbkeyboard.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/platforms/xcb/qxcbkeyboard.h b/src/plugins/platforms/xcb/qxcbkeyboard.h index 95915fb2e6..f8490592b7 100644 --- a/src/plugins/platforms/xcb/qxcbkeyboard.h +++ b/src/plugins/platforms/xcb/qxcbkeyboard.h @@ -43,6 +43,11 @@ #include "qxcbobject.h" #include <xcb/xcb_keysyms.h> +#if QT_CONFIG(xkb) +#define explicit dont_use_cxx_explicit +#include <xcb/xkb.h> +#undef explicit +#endif #include <xkbcommon/xkbcommon.h> #if QT_CONFIG(xkb) @@ -62,6 +67,8 @@ public: ~QXcbKeyboard(); + void selectEvents(); + void handleKeyPressEvent(const xcb_key_press_event_t *event); void handleKeyReleaseEvent(const xcb_key_release_event_t *event); |