]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
RNC: Set color of the error message to red
authorgdd <gdd>
Tue, 4 Jan 2011 15:54:14 +0000 (15:54 +0000)
committergdd <gdd>
Tue, 4 Jan 2011 15:54:14 +0000 (15:54 +0000)
src/EntityGUI/EntityGUI_SketcherDlg.cxx

index c895f423c919c4abf89d1b024b5d364bc2e45f8d..fc948361659a1d3787abeade3a2bf0b781476099 100644 (file)
@@ -207,7 +207,13 @@ EntityGUI_SketcherDlg::EntityGUI_SketcherDlg( GeometryGUI* GUI, QWidget* parent,
   Group4Spin->buttonUndo->setIcon( image1 );
   Group4Spin->buttonRedo->setIcon( image2 );
 
-  //myErrLabel = new QLabel( MainWidget->DestCnt );
+  // Defines a palette for the error message on Group4Spin and Group2Sel 
+  QPalette palette;
+  QColor color("red");
+  palette.setColor(Group4Spin->label->foregroundRole(), color);
+  Group4Spin->label->setPalette(palette);
+  palette.setColor(Group2Sel->label->foregroundRole(), color);
+  Group2Sel->label->setPalette(palette);
 
   QGridLayout* DestCntLayout = new QGridLayout( MainWidget->DestCnt );
   DestCntLayout->setMargin( 0 ); DestCntLayout->setSpacing( 6 );