diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2010-10-14 03:04:37 (GMT) |
---|---|---|
committer | Alan Alpert <alan.alpert@nokia.com> | 2010-10-14 03:04:37 (GMT) |
commit | 6fb13041677f00884746e7bc36e2c73f3fc5c991 (patch) | |
tree | 0bb5c841bc8ce024c4b6a08baa7d20437548b2ff /src/declarative | |
parent | ae54303992aecd512ab9647d631a90892320adee (diff) | |
download | Qt-6fb13041677f00884746e7bc36e2c73f3fc5c991.zip Qt-6fb13041677f00884746e7bc36e2c73f3fc5c991.tar.gz Qt-6fb13041677f00884746e7bc36e2c73f3fc5c991.tar.bz2 |
TextInput autoscroll now scrolls when the cursor moves
Previously needed some actual text changes to scroll, which is incorrect
Task-number: QTBUG-14230
Diffstat (limited to 'src/declarative')
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativetextinput.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativetextinput.cpp b/src/declarative/graphicsitems/qdeclarativetextinput.cpp index 637dd77..0903427 100644 --- a/src/declarative/graphicsitems/qdeclarativetextinput.cpp +++ b/src/declarative/graphicsitems/qdeclarativetextinput.cpp @@ -1464,6 +1464,7 @@ void QDeclarativeTextInputPrivate::init() void QDeclarativeTextInput::cursorPosChanged() { Q_D(QDeclarativeTextInput); + d->updateHorizontalScroll(); updateRect();//TODO: Only update rect between pos's updateMicroFocus(); emit cursorPositionChanged(); |