From 6a741a1d3facd7a3e0f7308c7ce71a513f30ba17 Mon Sep 17 00:00:00 2001 From: Alan Alpert Date: Thu, 24 Sep 2009 18:59:44 +1000 Subject: Mark an inefficency in TextEdit --- src/declarative/fx/qfxtextedit.cpp | 1 + 1 file changed, 1 insertion(+) 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()); -- cgit v0.12