summaryrefslogtreecommitdiffstats
path: root/src/declarative
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2009-09-24 08:59:44 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2009-09-24 08:59:44 (GMT)
commit6a741a1d3facd7a3e0f7308c7ce71a513f30ba17 (patch)
treefa9b228ec3a1d011af2042baf889d55a5af32366 /src/declarative
parent764601ac70042b3f733d114496b2fd5e4bbacda6 (diff)
downloadQt-6a741a1d3facd7a3e0f7308c7ce71a513f30ba17.zip
Qt-6a741a1d3facd7a3e0f7308c7ce71a513f30ba17.tar.gz
Qt-6a741a1d3facd7a3e0f7308c7ce71a513f30ba17.tar.bz2
Mark an inefficency in TextEdit
Diffstat (limited to 'src/declarative')
-rw-r--r--src/declarative/fx/qfxtextedit.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/declarative/fx/qfxtextedit.cpp b/src/declarative/fx/qfxtextedit.cpp
index ce06348..935ccb7 100644
--- a/src/declarative/fx/qfxtextedit.cpp
+++ b/src/declarative/fx/qfxtextedit.cpp
@@ -1053,6 +1053,7 @@ void QFxTextEdit::updateSize()
newWidth += cursorWidth;
if(!d->document->isEmpty())
newWidth += 3;// ### Need a better way of accounting for space between char and cursor
+ // ### Setting the implicitWidth triggers another updateSize(), and unless there are bindings nothing has changed.
setImplicitWidth(newWidth);
setImplicitHeight(d->text.isEmpty() ? fm.height() : (int)d->document->size().height());