3#ifndef QIBUSPLATFORMINPUTCONTEXT_H
4#define QIBUSPLATFORMINPUTCONTEXT_H
6#include <qpa/qplatforminputcontext.h>
8#include <QtCore/qpointer.h>
9#include <QtCore/QLocale>
10#include <QtDBus/qdbuspendingreply.h>
11#if QT_CONFIG(filesystemwatcher)
12#include <QFileSystemWatcher>
28 const Qt::KeyboardModifiers
modifiers = { },
39 inline const Qt::KeyboardModifiers
modifiers()
const {
return m_modifiers; }
44 const Qt::KeyboardModifiers m_modifiers;
59 void reset()
override;
61 void update(Qt::InputMethodQueries)
override;
84 bool m_eventFilterUseSynchronousMode;
85#if QT_CONFIG(filesystemwatcher)
90 void connectToContextSignals();
QIBusFilterEventWatcher(const QDBusPendingCall &call, QObject *parent=nullptr, QWindow *window=nullptr, const Qt::KeyboardModifiers modifiers={ }, const QVariantList arguments=QVariantList())
const QVariantList arguments() const
const Qt::KeyboardModifiers modifiers() const
~QIBusFilterEventWatcher()
QIBusPlatformInputContext()
void invokeAction(QInputMethod::Action a, int x) override
Called when the word currently being composed in the input item is tapped by the user.
void commitText(const QDBusVariant &text)
void busUnregistered(const QString &str)
bool filterEvent(const QEvent *event) override
This function can be reimplemented to filter input events.
void globalEngineChanged(const QString &engine_name)
void filterEventFinished(QDBusPendingCallWatcher *call)
void update(Qt::InputMethodQueries) override
Notification on editor updates.
bool hasCapability(Capability capability) const override
Returns whether the implementation supports capability.
void socketChanged(const QString &str)
QLocale locale() const override
bool isValid() const override
Returns input context validity.
void forwardKeyEvent(uint keyval, uint keycode, uint state)
void setFocusObject(QObject *object) override
This virtual method gets called to notify updated focus to object.
void updatePreeditText(const QDBusVariant &text, uint cursor_pos, bool visible)
~QIBusPlatformInputContext()
void surroundingTextRequired()
void reset() override
Method to be called when input method needs to be reset.
void busRegistered(const QString &str)
void deleteSurroundingText(int offset, uint n_chars)
QObject * parent() const
Returns a pointer to the parent object.
The QPlatformInputContext class abstracts the input method dependent data and composing state.
\macro QT_RESTRICTED_CAST_FROM_ASCII
EGLImageKHR int int EGLuint64KHR * modifiers
Combined button and popup list for selecting options.
QList< QVariant > QVariantList
GLint GLint GLint GLint GLint x
[0]
GLboolean GLboolean GLboolean GLboolean a
[7]
GLenum GLuint GLintptr offset