]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Background color of popup menu title was changed
authorstv <stv@opencascade.com>
Tue, 7 Jun 2005 05:36:03 +0000 (05:36 +0000)
committerstv <stv@opencascade.com>
Tue, 7 Jun 2005 05:36:03 +0000 (05:36 +0000)
src/Qtx/QtxPopupMenu.cxx

index f041f5db14cb3dc7fae61363ed1824aa98c85461..9abc1d47288165ee8406b1f34ca066abb3b0df9b 100644 (file)
@@ -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()