|
|
|
@ -154,10 +154,11 @@ void TQtCKStyle::unPolish( TQStyleControlElementData ceData, ControlElementFlags
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Style changes (should) always re-polish popups.
|
|
|
|
|
void TQtCKStyle::polishPopupMenu( TQPopupMenu* p )
|
|
|
|
|
void TQtCKStyle::polishPopupMenu( TQStyleControlElementData ceData, ControlElementFlags elementFlags, void *ptr )
|
|
|
|
|
{
|
|
|
|
|
if (!p->testWState( WState_Polished ))
|
|
|
|
|
p->setCheckable(true);
|
|
|
|
|
if ( !(ceData.windowState & WState_Polished ) ) {
|
|
|
|
|
widgetActionRequest(ceData, elementFlags, ptr, WAR_SetCheckable);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -363,7 +364,7 @@ void TQtCKStyle::drawKStylePrimitive( KStylePrimitive kpe,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int TQtCKStyle::kPixelMetric( KStylePixelMetric kpm, const TQWidget* /* widget */) const
|
|
|
|
|
int TQtCKStyle::kPixelMetric( KStylePixelMetric kpm, TQStyleControlElementData ceData, ControlElementFlags elementFlags, const TQWidget* /* widget */) const
|
|
|
|
|
{
|
|
|
|
|
int value;
|
|
|
|
|
switch(kpm)
|
|
|
|
@ -1130,7 +1131,7 @@ void TQtCKStyle::drawComplexControl( ComplexControl control,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Draw all the branches...
|
|
|
|
|
static int thickness = kPixelMetric( KPM_ListViewBranchThickness );
|
|
|
|
|
static int thickness = kPixelMetric( KPM_ListViewBranchThickness, ceData, elementFlags );
|
|
|
|
|
int line; // index into dotlines
|
|
|
|
|
TQRect branchrect;
|
|
|
|
|
TQStyle::StyleFlags branchflags;
|
|
|
|
|