[Bug 72830] Crash when switching between compiling output levels

Jens Dagerbo jens.dagerbo at swipnet.se
Fri Jan 23 06:46:07 UTC 2004


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
      
http://bugs.kde.org/show_bug.cgi?id=72830      




------- Additional Comments From jens.dagerbo at swipnet.se  2004-01-23 06:42 -------
Hmm.. inefficient, yes.. But it's actually QTextEdit that's blowing up. I believe this is the line that does it:

> popup->setItemEnabled( d->id[ IdSelectAll ], (bool)text().length() );

It's pushing all of the widgets contents into a QString only to call length() on it to make sure it isn't zero.. Doesn't seem to be the most efficient way of doing it.. :)

Anyway, I think the real problem is that we use QTextEdit to host more data than it was designed for. Now that we're targetting Qt-3.2, we should try to use the LogText textformat, which is said to reduce memory consumption greatly. We might lose some of the nice formatting, but that's clearly preferable.




More information about the KDevelop-devel mailing list