Fix more regressions in dialogs.
--HG-- branch : develop
This commit is contained in:
parent
3e821a7b83
commit
62d6463753
|
@ -598,7 +598,8 @@ void DialogPiecePath::PassmarkChanged(int index)
|
|||
//---------------------------------------------------------------------------------------------------------------------
|
||||
void DialogPiecePath::ReturnDefBefore()
|
||||
{
|
||||
ui->plainTextEditFormulaWidthBefore->setPlainText(currentSeamAllowance);
|
||||
const QString def = qApp->TrVars()->FormulaToUser(currentSeamAllowance, qApp->Settings()->GetOsSeparator());
|
||||
ui->plainTextEditFormulaWidthBefore->setPlainText(def);
|
||||
if (QPushButton* button = qobject_cast<QPushButton*>(sender()))
|
||||
{
|
||||
button->setEnabled(false);
|
||||
|
@ -608,7 +609,8 @@ void DialogPiecePath::ReturnDefBefore()
|
|||
//---------------------------------------------------------------------------------------------------------------------
|
||||
void DialogPiecePath::ReturnDefAfter()
|
||||
{
|
||||
ui->plainTextEditFormulaWidthAfter->setPlainText(currentSeamAllowance);
|
||||
const QString def = qApp->TrVars()->FormulaToUser(currentSeamAllowance, qApp->Settings()->GetOsSeparator());
|
||||
ui->plainTextEditFormulaWidthAfter->setPlainText(def);
|
||||
if (QPushButton* button = qobject_cast<QPushButton*>(sender()))
|
||||
{
|
||||
button->setEnabled(false);
|
||||
|
@ -782,7 +784,12 @@ void DialogPiecePath::EvalWidthBefore()
|
|||
ui->pushButtonDefBefore->setEnabled(true);
|
||||
}
|
||||
|
||||
UpdateNodeSABefore(formula);
|
||||
Eval(formulaData, m_flagFormulaBefore);
|
||||
|
||||
if (m_flagFormulaBefore)
|
||||
{
|
||||
UpdateNodeSABefore(formula);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -812,7 +819,12 @@ void DialogPiecePath::EvalWidthAfter()
|
|||
ui->pushButtonDefAfter->setEnabled(true);
|
||||
}
|
||||
|
||||
UpdateNodeSAAfter(formula);
|
||||
Eval(formulaData, m_flagFormulaAfter);
|
||||
|
||||
if (m_flagFormulaAfter)
|
||||
{
|
||||
UpdateNodeSAAfter(formula);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -1189,7 +1189,8 @@ void DialogSeamAllowance::NodeAngleChanged(int index)
|
|||
//---------------------------------------------------------------------------------------------------------------------
|
||||
void DialogSeamAllowance::ReturnDefBefore()
|
||||
{
|
||||
uiTabPaths->plainTextEditFormulaWidthBefore->setPlainText(currentSeamAllowance);
|
||||
const QString def = qApp->TrVars()->FormulaToUser(currentSeamAllowance, qApp->Settings()->GetOsSeparator());
|
||||
uiTabPaths->plainTextEditFormulaWidthBefore->setPlainText(def);
|
||||
if (QPushButton* button = qobject_cast<QPushButton*>(sender()))
|
||||
{
|
||||
button->setEnabled(false);
|
||||
|
@ -1199,7 +1200,8 @@ void DialogSeamAllowance::ReturnDefBefore()
|
|||
//---------------------------------------------------------------------------------------------------------------------
|
||||
void DialogSeamAllowance::ReturnDefAfter()
|
||||
{
|
||||
uiTabPaths->plainTextEditFormulaWidthAfter->setPlainText(currentSeamAllowance);
|
||||
const QString def = qApp->TrVars()->FormulaToUser(currentSeamAllowance, qApp->Settings()->GetOsSeparator());
|
||||
uiTabPaths->plainTextEditFormulaWidthAfter->setPlainText(def);
|
||||
if (QPushButton* button = qobject_cast<QPushButton*>(sender()))
|
||||
{
|
||||
button->setEnabled(false);
|
||||
|
|
Loading…
Reference in New Issue
Block a user