diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2009-09-24 08:59:44 (GMT) |
---|---|---|
committer | Alan Alpert <alan.alpert@nokia.com> | 2009-09-24 08:59:44 (GMT) |
commit | 6a741a1d3facd7a3e0f7308c7ce71a513f30ba17 (patch) | |
tree | fa9b228ec3a1d011af2042baf889d55a5af32366 /src/declarative | |
parent | 764601ac70042b3f733d114496b2fd5e4bbacda6 (diff) | |
download | Qt-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.cpp | 1 |
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()); |