PD: [skip ci] fixes #0004573: missing bindings to expressions in primitives location dialog

This commit is contained in:
wmayer
2021-02-20 20:04:37 +01:00
parent dd4874d2b6
commit 7405dd0ef9

View File

@@ -1832,6 +1832,14 @@ Location::Location(QWidget* parent, Part::Feature* feature)
// the angle is rad, transform it for display to degrees
ui->AngleQSB->setValue(Base::toDegrees<double>(rotationAngle));
ui->XPositionQSB->bind(App::ObjectIdentifier::parse(feature, std::string("Placement.Base.x")));
ui->YPositionQSB->bind(App::ObjectIdentifier::parse(feature, std::string("Placement.Base.y")));
ui->ZPositionQSB->bind(App::ObjectIdentifier::parse(feature, std::string("Placement.Base.z")));
ui->XDirectionEdit->bind(App::ObjectIdentifier::parse(feature, std::string("Placement.Rotation.Axis.x")));
ui->YDirectionEdit->bind(App::ObjectIdentifier::parse(feature, std::string("Placement.Rotation.Axis.y")));
ui->ZDirectionEdit->bind(App::ObjectIdentifier::parse(feature, std::string("Placement.Rotation.Axis.z")));
ui->AngleQSB->bind(App::ObjectIdentifier::parse(feature, std::string("Placement.Rotation.Angle")));
//connect signals
connect(ui->XPositionQSB, SIGNAL(valueChanged(double)), this, SLOT(onChangePosRot()));
connect(ui->YPositionQSB, SIGNAL(valueChanged(double)), this, SLOT(onChangePosRot()));