diff options
author | Andrew den Exter <andrew.den-exter@nokia.com> | 2011-03-03 00:18:21 (GMT) |
---|---|---|
committer | Andrew den Exter <andrew.den-exter@nokia.com> | 2011-03-03 01:13:04 (GMT) |
commit | e1d1b65e63223e8705b8df09645f8740ab7fb80d (patch) | |
tree | ac75f7a68d7ad7c051e8313bf009775083ae55f5 /src | |
parent | 585ddb51909db49c51e9e8019d3b5d45c48a1a08 (diff) | |
download | Qt-e1d1b65e63223e8705b8df09645f8740ab7fb80d.zip Qt-e1d1b65e63223e8705b8df09645f8740ab7fb80d.tar.gz Qt-e1d1b65e63223e8705b8df09645f8740ab7fb80d.tar.bz2 |
Compensate for horizontal scroll in TextInput micro focus.
Return the adjusted cursore rectangle rather than the one
returned by QLineControl.
Change-Id: I343ecdb47ef2ea59519c8d155bbb9917d9c8ce56
Task-number: QTBUG-17864
Reviewed-by: Martin Jones
Diffstat (limited to 'src')
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativetextinput.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativetextinput.cpp b/src/declarative/graphicsitems/qdeclarativetextinput.cpp index dc44bfe..f41ab03 100644 --- a/src/declarative/graphicsitems/qdeclarativetextinput.cpp +++ b/src/declarative/graphicsitems/qdeclarativetextinput.cpp @@ -1288,7 +1288,7 @@ QVariant QDeclarativeTextInput::inputMethodQuery(Qt::InputMethodQuery property) Q_D(const QDeclarativeTextInput); switch(property) { case Qt::ImMicroFocus: - return d->control->cursorRect(); + return cursorRectangle(); case Qt::ImFont: return font(); case Qt::ImCursorPosition: |