mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-15 10:08:35 +05:00
RNC: Set color of the error message to red
This commit is contained in:
parent
f6f891919b
commit
4c3b1a1d5e
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user