Show warning icon if only both requirements are false.
--HG-- branch : feature
This commit is contained in:
parent
1e525ed788
commit
449543f203
|
@ -1010,7 +1010,7 @@ void DialogSeamAllowance::UpdateValues()
|
||||||
}
|
}
|
||||||
|
|
||||||
flagGFormulas = bFormulasOK;
|
flagGFormulas = bFormulasOK;
|
||||||
if (flagGFormulas == false)
|
if (not flagGFormulas && not flagGPin)
|
||||||
{
|
{
|
||||||
QIcon icon(":/icons/win.icon.theme/16x16/status/dialog-warning.png");
|
QIcon icon(":/icons/win.icon.theme/16x16/status/dialog-warning.png");
|
||||||
ui->tabWidget->setTabIcon(ui->tabWidget->indexOf(ui->tabGrainline), icon);
|
ui->tabWidget->setTabIcon(ui->tabWidget->indexOf(ui->tabGrainline), icon);
|
||||||
|
@ -1297,8 +1297,11 @@ void DialogSeamAllowance::GrainlinePinPointChanged()
|
||||||
flagGPin = false;
|
flagGPin = false;
|
||||||
color = errorColor;
|
color = errorColor;
|
||||||
|
|
||||||
QIcon icon(":/icons/win.icon.theme/16x16/status/dialog-warning.png");
|
if (not flagGFormulas && not flagGPin)
|
||||||
ui->tabWidget->setTabIcon(ui->tabWidget->indexOf(ui->tabGrainline), icon);
|
{
|
||||||
|
QIcon icon(":/icons/win.icon.theme/16x16/status/dialog-warning.png");
|
||||||
|
ui->tabWidget->setTabIcon(ui->tabWidget->indexOf(ui->tabGrainline), icon);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
ChangeColor(ui->labelGrainlineTopPin, color);
|
ChangeColor(ui->labelGrainlineTopPin, color);
|
||||||
ChangeColor(ui->labelGrainlineBottomPin, color);
|
ChangeColor(ui->labelGrainlineBottomPin, color);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user