4#ifndef QLIBINPUTKEYBOARD_P_H
5#define QLIBINPUTKEYBOARD_P_H
7#include <QtCore/QPoint>
8#include <QtCore/QTimer>
10#include <QtGui/private/qtguiglobal_p.h>
12#if QT_CONFIG(xkbcommon)
13#include <xkbcommon/xkbcommon.h>
27struct libinput_event_keyboard;
31class QLibInputKeyboard :
public QObject
37 void processKey(libinput_event_keyboard *e);
39#if QT_CONFIG(xkbcommon)
43 int keysymToQtKey(xkb_keysym_t key)
const;
44 int keysymToQtKey(xkb_keysym_t keysym, Qt::KeyboardModifiers *modifiers,
const QString &text)
const;
46 xkb_context *m_ctx =
nullptr;
47 xkb_keymap *m_keymap =
nullptr;
48 xkb_state *m_state =
nullptr;
54 Qt::KeyboardModifiers mods;
Q_LOGGING_CATEGORY(lcEventDispatcher, "qt.eventdispatcher")
QT_BEGIN_NAMESPACE Q_DECLARE_LOGGING_CATEGORY(lcEventDispatcher)