From: gdd Date: Tue, 4 Jan 2011 15:54:14 +0000 (+0000) Subject: RNC: Set color of the error message to red X-Git-Tag: Start_BR_19998_21191~100 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4c3b1a1d5e74471051f6ba927dc786939fb70b24;p=modules%2Fgeom.git RNC: Set color of the error message to red --- diff --git a/src/EntityGUI/EntityGUI_SketcherDlg.cxx b/src/EntityGUI/EntityGUI_SketcherDlg.cxx index c895f423c..fc9483616 100644 --- a/src/EntityGUI/EntityGUI_SketcherDlg.cxx +++ b/src/EntityGUI/EntityGUI_SketcherDlg.cxx @@ -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 );