[PATCH] KStatusBar::changeItem() optimisation

Clarence Dang dang at kde.org
Wed Jun 16 07:05:05 BST 2004


Attached patch doesn't call QStatusBar::reformat() when the text of a fixed 
item is changed since the layout of the statusbar won't be changed.  This 
dramatically reduces CPU usage if the text is set frequently (e.g. moving the 
mouse over the drawing area in KolourPaint).

Actually, I'm not sure if calling reformat() is ever needed at all since I 
imagine geometry management would take care of it.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: kstatusbar-changeitem-fast.diff
Type: text/x-diff
Size: 593 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20040616/75987127/attachment.diff>

More information about the kde-core-devel mailing list