QStyle::stylePixmap, KDockWidget header height

Hans Meine hans_meine at gmx.net
Sun Sep 29 21:19:06 BST 2002


Andreas Zehender <zehender at kde.org> writes:
> Hi!
> 
> On Thursday 26 September 2002 00:05, Maksim Orlovich wrote:
> > > 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.
> 
> Then the themeable close button does not work as expected and requires some 
> ugly hacks in the styles. I will revert it for KPovModeler.
> 
> IMHO it should be reverted in KDockWidget, too.

How about introducing QStyle::SP_SmallTitleBarCloseButton or a
separate flag which tells the style that it's not about the "outer"
window's titlebar but about an "inner" (MDI-like) window?

I don't think themeable close buttons for dock widgets are a bad
idea.. ;-)

-- 
Ciao,  /  /
      /--/
     /  / ANS




More information about the kde-core-devel mailing list