3#ifndef QCOMPOSEPLATFORMINPUTCONTEXT_H
4#define QCOMPOSEPLATFORMINPUTCONTEXT_H
6#include <QtCore/QLoggingCategory>
8#include <qpa/qplatforminputcontext.h>
10#include <xkbcommon/xkbcommon-compose.h>
28 void reset()
override;
29 void update(Qt::InputMethodQueries)
override;
40 bool m_initialized =
false;
41 xkb_compose_table *m_composeTable =
nullptr;
42 xkb_compose_state *m_composeState =
nullptr;
43 QObject *m_focusObject =
nullptr;
44 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.
The QPlatformInputContext class abstracts the input method dependent data and composing state.
Combined button and popup list for selecting options.
#define Q_DECLARE_LOGGING_CATEGORY(name)