From: stv Date: Tue, 7 Jun 2005 05:36:03 +0000 (+0000) Subject: Background color of popup menu title was changed X-Git-Tag: T3_0_0_a2~23 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a0f8cd7ef9fc3fbe57959ef7764a921ed7f6e44b;p=modules%2Fgui.git Background color of popup menu title was changed --- diff --git a/src/Qtx/QtxPopupMenu.cxx b/src/Qtx/QtxPopupMenu.cxx index f041f5db1..9abc1d472 100644 --- a/src/Qtx/QtxPopupMenu.cxx +++ b/src/Qtx/QtxPopupMenu.cxx @@ -61,7 +61,7 @@ void QtxPopupMenu::TitleMenuItem::paint( QPainter* p, const QColorGroup& cg, QFont f = p->font(); p->setFont( myFont ); - p->fillRect( x, y, w, h, cg.brush( QColorGroup::Mid ) ); + p->fillRect( x, y, w, h, cg.brush( QColorGroup::Dark ) ); p->setPen( cg.shadow() ); p->drawRect( x, y, w, h ); @@ -216,6 +216,7 @@ void QtxPopupMenu::insertTitle() TitleMenuItem* item = createTitleItem( titleText(), titleIcon(), titleAlignment() ); myId = insertItem( item, -1, 0 ); + setItemEnabled( myId, false ); } void QtxPopupMenu::removeTitle()