summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2010-10-14 03:04:37 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2010-10-14 03:04:37 (GMT)
commit6fb13041677f00884746e7bc36e2c73f3fc5c991 (patch)
tree0bb5c841bc8ce024c4b6a08baa7d20437548b2ff
parentae54303992aecd512ab9647d631a90892320adee (diff)
downloadQt-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
-rw-r--r--src/declarative/graphicsitems/qdeclarativetextinput.cpp1
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();