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/qinputmethod.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/qinputmethod.h')
-rw-r--r-- | src/gui/kernel/qinputmethod.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/kernel/qinputmethod.h b/src/gui/kernel/qinputmethod.h index 68dc679d14..22e4677eaa 100644 --- a/src/gui/kernel/qinputmethod.h +++ b/src/gui/kernel/qinputmethod.h @@ -55,6 +55,7 @@ class Q_GUI_EXPORT QInputMethod : public QObject Q_OBJECT Q_DECLARE_PRIVATE(QInputMethod) Q_PROPERTY(QRectF cursorRectangle READ cursorRectangle NOTIFY cursorRectangleChanged) + Q_PROPERTY(QRectF anchorRectangle READ anchorRectangle NOTIFY anchorRectangleChanged) Q_PROPERTY(QRectF keyboardRectangle READ keyboardRectangle NOTIFY keyboardRectangleChanged) Q_PROPERTY(bool visible READ isVisible NOTIFY visibleChanged) Q_PROPERTY(bool animating READ isAnimating NOTIFY animatingChanged) @@ -70,6 +71,7 @@ public: // in window coordinates QRectF cursorRectangle() const; // ### what if we have rotations for the item? + QRectF anchorRectangle() const; // ### ditto // keyboard geometry in window coords QRectF keyboardRectangle() const; @@ -102,6 +104,7 @@ public Q_SLOTS: Q_SIGNALS: void cursorRectangleChanged(); + void anchorRectangleChanged(); void keyboardRectangleChanged(); void visibleChanged(); void animatingChanged(); |