5#ifndef QCOMPOSEPLATFORMINPUTCONTEXT_H
6#define QCOMPOSEPLATFORMINPUTCONTEXT_H
8#include <QtCore/QLoggingCategory>
10#include <qpa/qplatforminputcontext.h>
12#include <xkbcommon/xkbcommon-compose.h>
14Q_DECLARE_OPAQUE_POINTER(xkb_context *)
17Q_DECLARE_LOGGING_CATEGORY(lcXkbCompose)
42 bool m_initialized =
false;
43 xkb_compose_table *m_composeTable =
nullptr;
44 xkb_compose_state *m_composeState =
nullptr;
45 QObject *m_focusObject =
nullptr;
46 struct xkb_context *m_XkbContext =
nullptr;
void reset() override
Method to be called when input method needs to be reset.
bool filterEvent(const QEvent *event) override
This function can be reimplemented to filter input events.
void setFocusObject(QObject *object) override
This virtual method gets called to notify updated focus to object.
Q_INVOKABLE void setXkbContext(struct xkb_context *context)
bool isValid() const override
Returns input context validity.
void update(Qt::InputMethodQueries) override
Notification on editor updates.
Q_LOGGING_CATEGORY(lcEventDispatcher, "qt.eventdispatcher")