QStyle::stylePixmap, KDockWidget header height

Maksim Orlovich mo002j at mail.rochester.edu
Wed Sep 25 23:05:05 BST 2002

On Thu, 26 Sep 2002, Andreas Zehender wrote:
> Hi!
> I am hunting a strange bug in the KPovModeler dock widget header at the 
> moment.
> I updated from CVS yesterday and noticed that the dock widget header in 
> KPovModeler is much bigger than the headers in KNode and Kate.
> The reason seems to be that the call:
> style().stylePixmap (QStyle::SP_TitleBarCloseButton, this));
> returns a different pixmap in kdockwidget.cpp (kdelibs) and pmdockwidget.cpp 
> (kpovmodeler). While the knode code returns a pixmap of height 9, the 
> kpovmodeler icon has height 17 (keramic style)
> Are there any special cases for the KDockWidget class in the kde styles that 
> don't work with the KPovModeler dock widget? On what depends the returned 
> icon size?

Yes, unfortunately, Keramik has to treat KDockWidget separately because
the default-size button is way too large for this :-( I can't think of a
nice solution right of the bat, but I'll keep thinking about it.

More information about the kde-core-devel mailing list