Skip to content
Snippets Groups Projects

GUI SpanPropertyForm: rm coupling of span and width (#856)

Merged Wuttke, Joachim requested to merge j.856 into main
1 file
+ 5
5
Compare changes
  • Side-by-side
  • Inline
@@ -43,11 +43,11 @@ SpanPropertyForm::SpanPropertyForm(QWidget* parent, const QString& groupTitle,
m_centerSpinBox = GUI::Util::createDoubleSpinBoxRow(layout, spanProperty->center());
connect(m_widthSpinBox, &DoubleSpinBox::baseValueChanged, [this](double v) {
ASSERT(v >= 0); // spin box should have got limits from property
if (m_spanProperty->width() == v)
return;
m_spanProperty->setWidth(v);
emit dataChanged();
ASSERT(v >= 0); // spin box should have got limits from property
if (m_spanProperty->width() == v)
return;
m_spanProperty->setWidth(v);
emit dataChanged();
});
connect(m_centerSpinBox, &DoubleSpinBox::baseValueChanged, [this](double v) {
Loading