[ooo-build] 2 problems with KDE4 integration
Jan Holesovsky
kendy at suse.cz
Wed Sep 9 09:55:03 PDT 2009
Hi Rafael,
On Wednesday 09 of September 2009, Rafael Cabral wrote:
> Take a look at (vcl/unx/kde/salnativewidgets-kde.cxx) class WidgetPainter.
I did that because KDE/Qt 3 needed a widget instance to be able to draw, and
it looked to me as a waste of resources allocating and freeing it with every
paint event; it was not really meant as an optimization originally, just a
need ;-) - I would have been much more happy if the instance of the widget
was not necessary.
> I'm not sure if a cached widget object could be used in the new kde4
> kstyle drawControl method.
An equivalent in KDE/Qt 4 seems to be remembering the QStyleOption objects
(eg. by doing them static), but I suppose this would be worth profiling
first.
HTH,
Kendy
More information about the ooo-build
mailing list