Fixed issue "Rotation tool - Cannot edit formula after creation".
--HG-- branch : develop
This commit is contained in:
parent
b7b1ea3db7
commit
66cc34ed64
|
@ -48,7 +48,8 @@ DialogRotation::DialogRotation(const VContainer *data, const quint32 &toolId, QW
|
|||
formulaAngle(),
|
||||
formulaBaseHeightAngle(0),
|
||||
objects(),
|
||||
stage1(true)
|
||||
stage1(true),
|
||||
m_suffix()
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
||||
|
@ -126,12 +127,13 @@ void DialogRotation::SetAngle(const QString &value)
|
|||
//---------------------------------------------------------------------------------------------------------------------
|
||||
QString DialogRotation::GetSuffix() const
|
||||
{
|
||||
return ui->lineEditSuffix->text();
|
||||
return m_suffix;
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
void DialogRotation::SetSuffix(const QString &value)
|
||||
{
|
||||
m_suffix = value;
|
||||
ui->lineEditSuffix->setText(value);
|
||||
}
|
||||
|
||||
|
@ -288,6 +290,8 @@ void DialogRotation::SuffixChanged()
|
|||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (m_suffix != suffix)
|
||||
{
|
||||
QRegularExpression rx(NameRegExp());
|
||||
const QStringList uniqueNames = data->AllUniqueNames();
|
||||
|
@ -303,6 +307,7 @@ void DialogRotation::SuffixChanged()
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
flagName = true;
|
||||
ChangeColor(ui->labelSuffix, okColor);
|
||||
|
@ -328,6 +333,8 @@ void DialogRotation::ShowVisualization()
|
|||
//---------------------------------------------------------------------------------------------------------------------
|
||||
void DialogRotation::SaveData()
|
||||
{
|
||||
m_suffix = ui->lineEditSuffix->text();
|
||||
|
||||
formulaAngle = ui->plainTextEditFormula->toPlainText();
|
||||
formulaAngle.replace("\n", " ");
|
||||
|
||||
|
|
|
@ -98,6 +98,8 @@ private:
|
|||
|
||||
bool stage1;
|
||||
|
||||
QString m_suffix;
|
||||
|
||||
void EvalAngle();
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user