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