diff options
author | Jan Arve Sæther <jan-arve.saether@theqtcompany.com> | 2015-11-26 10:40:21 +0100 |
---|---|---|
committer | Jan Arve Sæther <jan-arve.saether@theqtcompany.com> | 2016-04-14 07:29:10 +0000 |
commit | 6bf790e27d437631d2241942062e16b3c8191095 (patch) | |
tree | 331992cad40a485ba95a29450452f845007993ed /src/quick/items/qquicktextcontrol_p.h | |
parent | 2eb69af40a1ab29f10fe92c9d3667b00407b2f81 (diff) |
Add support for input method selection handles
QQuickTextInput needs to report back Qt::ImhAnchorRectangle, and
make it possible to query the cursor position of any given point
with inputMethodQuery(Qt::ImCursorPosition, point)
Change-Id: Iabe1946e7a8642b51c4601b51e2a13763bdbbd0c
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@theqtcompany.com>
Diffstat (limited to 'src/quick/items/qquicktextcontrol_p.h')
-rw-r--r-- | src/quick/items/qquicktextcontrol_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/quick/items/qquicktextcontrol_p.h b/src/quick/items/qquicktextcontrol_p.h index 23c91d555b..ca5a3d3191 100644 --- a/src/quick/items/qquicktextcontrol_p.h +++ b/src/quick/items/qquicktextcontrol_p.h @@ -96,6 +96,7 @@ public: bool hasImState() const; bool cursorVisible() const; void setCursorVisible(bool visible); + QRectF anchorRect() const; QRectF cursorRect(const QTextCursor &cursor) const; QRectF cursorRect() const; QRectF selectionRect(const QTextCursor &cursor) const; |