7#include "private/qkeymapper_p.h"
8#include "private/qhighdpiscaling_p.h"
9#include <qpa/qplatforminputcontext_p.h>
11#include <QtGui/qtransform.h>
259 if (anchor ==
cursor && anchorPos != cursorPos)
345#include "moc_qplatforminputcontext.cpp"
static bool sendEvent(QObject *receiver, QEvent *event)
Sends event event directly to receiver receiver, using the notify() function.
static QWindow * focusWindow()
Returns the QWindow that receives events tied to focus, such as key events.
static QInputMethod * inputMethod()
returns the input method.
QLocale keyboardInputLocale
Qt::LayoutDirection keyboardInputDirection
void append(parameter_type t)
static void setInputMethodAccepted(bool accepted)
static bool s_inputMethodAccepted
virtual bool isInputPanelVisible() const
Returns input panel visibility status.
virtual bool isAnimating() const
This function can be reimplemented to return true whenever input method is animating shown or hidden.
bool inputMethodAccepted() const
Returns true if current focus object supports input method events.
static QRectF anchorRectangle()
QPlatformInputContext::anchorRectangle.
virtual QLocale locale() const
void emitInputDirectionChanged(Qt::LayoutDirection newDirection)
void emitAnimatingChanged()
Active QPlatformInputContext is responsible for providing animating property to QInputMethod.
virtual bool hasCapability(Capability capability) const
Returns whether the implementation supports capability.
void emitInputPanelVisibleChanged()
Active QPlatformInputContext is responsible for providing visible property to QInputMethod.
virtual void update(Qt::InputMethodQueries)
Notification on editor updates.
static void setSelectionOnFocusObject(const QPointF &anchorPos, const QPointF &cursorPos)
QPlatformInputContext::setSelectionOnFocusObject.
static QVariant queryFocusObject(Qt::InputMethodQuery query, QPointF position)
QPlatformInputContext::queryFocusObject.
virtual bool filterEvent(const QEvent *event)
This function can be reimplemented to filter input events.
static QRectF keyboardRectangle()
QPlatformInputContext::keyboardRectangle.
virtual void setFocusObject(QObject *object)
This virtual method gets called to notify updated focus to object.
static QRectF inputItemClipRectangle()
QPlatformInputContext::inputItemClipRectangle.
virtual void invokeAction(QInputMethod::Action, int cursorPosition)
Called when the word currently being composed in the input item is tapped by the user.
virtual bool isValid() const
Returns input context validity.
void emitKeyboardRectChanged()
Active QPlatformInputContext is responsible for providing keyboardRectangle property to QInputMethod.
virtual void reset()
Method to be called when input method needs to be reset.
static QRectF cursorRectangle()
QPlatformInputContext::cursorRectangle.
static QRectF inputItemRectangle()
QPlatformInputContext::inputItemRectangle.
virtual void showInputPanel()
Request to show input panel.
virtual Qt::LayoutDirection inputDirection() const
virtual void hideInputPanel()
Request to hide input panel.
virtual QRectF keyboardRect() const
This function can be reimplemented to return virtual keyboard rectangle in currently active window co...
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
\macro QT_RESTRICTED_CAST_FROM_ASCII
int toInt(bool *ok=nullptr) const
Returns the variant as an int if the variant has userType() \l QMetaType::Int, \l QMetaType::Bool,...
T toNativePixels(const T &value, const C *context)
T fromNativePixels(const T &value, const C *context)
Combined button and popup list for selecting options.
QKeyMapperPrivate * qt_keymapper_private()
static qreal position(const QQuickItem *item, QQuickAnchors::Anchor anchorLine)