summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2009-11-26 15:00:07 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2009-11-26 15:00:07 (GMT)
commit6d9e42793f912dbaf742c8f941bbdb9041d08a7f (patch)
tree22d9b0f80b33a5de233d3ea91d1a9523bb74e9bb /src/declarative/graphicsitems
parent7738d3b389200dc73f3e19c55359675f9c26a9a5 (diff)
downloadQt-6d9e42793f912dbaf742c8f941bbdb9041d08a7f.zip
Qt-6d9e42793f912dbaf742c8f941bbdb9041d08a7f.tar.gz
Qt-6d9e42793f912dbaf742c8f941bbdb9041d08a7f.tar.bz2
Fixes wrapping in TextEdit
Somehow TextEdit got to the point of not calling updateSize after text input. Visual test included. Task-number: QTBUG-6273
Diffstat (limited to 'src/declarative/graphicsitems')
-rw-r--r--src/declarative/graphicsitems/qmlgraphicstextedit.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/declarative/graphicsitems/qmlgraphicstextedit.cpp b/src/declarative/graphicsitems/qmlgraphicstextedit.cpp
index bec2ff8..5f5269f 100644
--- a/src/declarative/graphicsitems/qmlgraphicstextedit.cpp
+++ b/src/declarative/graphicsitems/qmlgraphicstextedit.cpp
@@ -144,7 +144,6 @@ void QmlGraphicsTextEdit::setText(const QString &text)
d->control->setPlainText(text);
}
q_textChanged();
- updateSize();
}
/*!
@@ -889,8 +888,7 @@ void QmlGraphicsTextEditPrivate::init()
void QmlGraphicsTextEdit::q_textChanged()
{
- if (!widthValid())
- updateSize(); //### optimize: we get 3 calls to updateSize every time a letter is typed
+ updateSize();
emit textChanged(text());
}