diff options
author | Jan Arve Sæther <jan-arve.saether@theqtcompany.com> | 2015-11-26 10:37:24 +0100 |
---|---|---|
committer | Jan Arve Sæther <jan-arve.saether@theqtcompany.com> | 2016-04-06 12:26:34 +0000 |
commit | 0bb645b1ccc5a9d57b21cf0b2c4306b8e48c611c (patch) | |
tree | bf868b455287bffb5b0cab804765802bd3214f1f /src/gui/kernel/qplatforminputcontext.h | |
parent | 9b699fa839f560a9ea9da69c8975b9aa4654ab8b (diff) |
Add support for ImhAnchorRectangle
Adds the following API:
* QInputMethod::anchorRectangle()
* QPlatformInputContext::setSelectionOnFocusObject()
This will be used for determining how to display selection handles.
Change-Id: If57e3fd58ff0f1ba7899f7dd62bfa9c006028667
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@theqtcompany.com>
Diffstat (limited to 'src/gui/kernel/qplatforminputcontext.h')
-rw-r--r-- | src/gui/kernel/qplatforminputcontext.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/kernel/qplatforminputcontext.h b/src/gui/kernel/qplatforminputcontext.h index 24c6178541..7afa6b82f2 100644 --- a/src/gui/kernel/qplatforminputcontext.h +++ b/src/gui/kernel/qplatforminputcontext.h @@ -95,6 +95,8 @@ public: virtual void setFocusObject(QObject *object); bool inputMethodAccepted() const; + static void setSelectionOnFocusObject(const QPointF &anchorPos, const QPointF &cursorPos); + private: friend class QGuiApplication; friend class QGuiApplicationPrivate; |