|
|
|
@ -730,7 +730,7 @@ void PopupMenuEditor::paintEvent( TQPaintEvent * )
|
|
|
|
|
rect().width() - borderSize * 2, rect().height() - borderSize * 2 );
|
|
|
|
|
reg -= mid;
|
|
|
|
|
p.setClipRegion( reg );
|
|
|
|
|
style().tqdrawPrimitive( TQStyle::PE_PanelPopup, &p, rect(), colorGroup() );
|
|
|
|
|
style().drawPrimitive( TQStyle::PE_PanelPopup, &p, rect(), colorGroup() );
|
|
|
|
|
p.restore();
|
|
|
|
|
drawItems( &p );
|
|
|
|
|
}
|
|
|
|
@ -1034,7 +1034,7 @@ void PopupMenuEditor::drawItem( TQPainter * p, PopupMenuEditorItem * i,
|
|
|
|
|
p->fillRect( r, colorGroup().brush( TQColorGroup::Background ) );
|
|
|
|
|
|
|
|
|
|
if ( i->isSeparator() ) {
|
|
|
|
|
style().tqdrawPrimitive( TQStyle::PE_Separator, p,
|
|
|
|
|
style().drawPrimitive( TQStyle::PE_Separator, p,
|
|
|
|
|
TQRect( r.x(), r.y() + 2, r.width(), 1 ),
|
|
|
|
|
colorGroup(), TQStyle::Style_Sunken | f );
|
|
|
|
|
return;
|
|
|
|
@ -1042,7 +1042,7 @@ void PopupMenuEditor::drawItem( TQPainter * p, PopupMenuEditorItem * i,
|
|
|
|
|
|
|
|
|
|
const TQAction * a = i->action();
|
|
|
|
|
if ( a->isToggleAction() && a->isOn() ) {
|
|
|
|
|
style().tqdrawPrimitive( TQStyle::PE_CheckMark, p,
|
|
|
|
|
style().drawPrimitive( TQStyle::PE_CheckMark, p,
|
|
|
|
|
TQRect( x , y, iconWidth, h ),
|
|
|
|
|
colorGroup(), f );
|
|
|
|
|
} else {
|
|
|
|
@ -1064,7 +1064,7 @@ void PopupMenuEditor::drawItem( TQPainter * p, PopupMenuEditorItem * i,
|
|
|
|
|
TQPainter::AlignLeft | TQPainter::AlignVCenter,
|
|
|
|
|
a->accel() );
|
|
|
|
|
if ( i->count() ) // Item has submenu
|
|
|
|
|
style().tqdrawPrimitive( TQStyle::PE_ArrowRight, p,
|
|
|
|
|
style().drawPrimitive( TQStyle::PE_ArrowRight, p,
|
|
|
|
|
TQRect( r.width() - arrowWidth, r.y(), arrowWidth, r.height() ),
|
|
|
|
|
colorGroup(), f );
|
|
|
|
|
}
|
|
|
|
|