diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2010-06-01 01:36:29 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2010-06-01 01:36:29 (GMT) |
commit | ff93c3562f2b73abb69b1698f71fc9538ca5d999 (patch) | |
tree | 6bd20a2713047cd26c52dfbacc01f6f8655b98d5 | |
parent | a186682a9c0ca21cd36c0e79cd58f965115f3c10 (diff) | |
download | Qt-ff93c3562f2b73abb69b1698f71fc9538ca5d999.zip Qt-ff93c3562f2b73abb69b1698f71fc9538ca5d999.tar.gz Qt-ff93c3562f2b73abb69b1698f71fc9538ca5d999.tar.bz2 |
Fix positionAt when autoScroll is use.
Task-number: QTBUG-11054
-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 25a2b49..3a1acc2 100644 --- a/src/declarative/graphicsitems/qdeclarativetextinput.cpp +++ b/src/declarative/graphicsitems/qdeclarativetextinput.cpp @@ -852,7 +852,7 @@ QRectF QDeclarativeTextInput::positionToRectangle(int x) const int QDeclarativeTextInput::positionAt(int x) const { Q_D(const QDeclarativeTextInput); - return d->control->xToPos(x - d->hscroll); + return d->control->xToPos(x + d->hscroll); } void QDeclarativeTextInputPrivate::focusChanged(bool hasFocus) |