[TD] use Gui::QuantitySpinBox in dialogs

as recently discussed

- also add lost alignment properties
This commit is contained in:
donovaly
2020-03-28 03:04:50 +01:00
committed by WandererFan
parent d4e605c33b
commit 29c6aaa0b8
7 changed files with 124 additions and 48 deletions

View File

@@ -120,7 +120,7 @@ bool TaskBalloon::accept()
ac.setValue<QColor>(ui->textColor->color());
m_balloonVP->Color.setValue(ac);
m_balloonVP->Fontsize.setValue(ui->qsbFontSize->value().getValue());
m_parent->dvBalloon->ShapeScale.setValue(ui->inputScale->value());
m_parent->dvBalloon->ShapeScale.setValue(ui->inputScale->value().getValue());
m_parent->dvBalloon->EndType.setValue(ui->comboEndType->currentIndex());
m_parent->dvBalloon->Shape.setValue(ui->comboSymbol->currentIndex());
m_balloonVP->LineWidth.setValue(ui->qsbLineWidth->value().getValue());
@@ -170,7 +170,7 @@ void TaskBalloon::onShapeChanged()
void TaskBalloon::onShapeScaleChanged()
{
m_parent->dvBalloon->ShapeScale.setValue(ui->inputScale->value());
m_parent->dvBalloon->ShapeScale.setValue(ui->inputScale->value().getValue());
recomputeFeature();
}