Commit 7e42a1ed authored by Mathieu Tillet's avatar Mathieu Tillet
Browse files

Update the bounding box on center field edition

The user's interactions are now taken into account (and dynamically)
when the "center" field is edited (for a sector).
parent 3d7a5bde
......@@ -640,7 +640,6 @@ void InstrumentWidgetMaskTab::doubleChanged(QtProperty *prop) {
if (!name.isEmpty()) {
m_instrWidget->getSurface()->setCurrentDouble(
name, m_doubleManager->value(prop));
m_instrWidget->updateInstrumentView();
} else {
name = m_pointComponentsMap[prop];
if (!name.isEmpty()) {
......@@ -653,6 +652,7 @@ void InstrumentWidgetMaskTab::doubleChanged(QtProperty *prop) {
m_instrWidget->getSurface()->setCurrentPoint(name, p);
}
}
m_instrWidget->updateInstrumentView();
}
m_instrWidget->update();
}
......
......@@ -1090,6 +1090,7 @@ QPointF Shape2DSector::getPoint(const QString &prop) const {
void Shape2DSector::setPoint(const QString &prop, const QPointF &value) {
if (prop == "center") {
m_center = value;
resetBoundingRect();
}
}
......
......@@ -588,7 +588,8 @@ QPointF Shape2DCollection::getCurrentPoint(const QString &prop) const {
void Shape2DCollection::setCurrentPoint(const QString &prop,
const QPointF &value) {
if (m_currentShape) {
return m_currentShape->setPoint(prop, value);
m_currentShape->setPoint(prop, value);
emit shapeChanged();
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment