@@ -201,6 +201,7 @@ OptionsWidget::preUpdateUI(
201
201
}
202
202
}
203
203
204
+ updateFramingsDisplay ();
204
205
updateMarginsDisplay ();
205
206
206
207
{
@@ -269,7 +270,7 @@ OptionsWidget::extraWMarginChanged(double const val)
269
270
270
271
m_framings.setFramingWidth (extraWMarginSpinBox->value () / 100.0 );
271
272
272
- updateMarginsDisplay ();
273
+ updateFramingsDisplay ();
273
274
emit framingsChanged (m_framings);
274
275
emit marginsSetLocally (m_margins);
275
276
updateSizeDisplay ();
@@ -287,7 +288,7 @@ OptionsWidget::extraHMarginChanged(double const val)
287
288
288
289
m_framings.setFramingHeight (extraHMarginSpinBox->value () / 100.0 );
289
290
290
- updateMarginsDisplay ();
291
+ updateFramingsDisplay ();
291
292
emit framingsChanged (m_framings);
292
293
emit marginsSetLocally (m_margins);
293
294
updateSizeDisplay ();
@@ -329,7 +330,6 @@ OptionsWidget::vertMarginsChanged(double const val)
329
330
m_margins.setTop (topMarginSpinBox->value () / 100.0 );
330
331
m_margins.setBottom (bottomMarginSpinBox->value () / 100.0 );
331
332
332
-
333
333
emit marginsSetLocally (m_margins);
334
334
updateSizeDisplay ();
335
335
}
@@ -510,14 +510,25 @@ OptionsWidget::updateMarginsDisplay()
510
510
{
511
511
ScopedIncDec<int > const ignore_scope (m_ignoreMarginChanges);
512
512
513
- extraWMarginSpinBox->setValue (m_framings.getFramingWidth () * 100.0 );
514
- extraHMarginSpinBox->setValue (m_framings.getFramingHeight () * 100.0 );
515
513
topMarginSpinBox->setValue (m_margins.top () * 100.0 );
516
514
bottomMarginSpinBox->setValue (m_margins.bottom () * 100.0 );
517
515
leftMarginSpinBox->setValue (m_margins.left () * 100.0 );
518
516
rightMarginSpinBox->setValue (m_margins.right () * 100.0 );
519
517
}
520
518
519
+ void
520
+ OptionsWidget::updateLinkDisplay (QToolButton* button, bool const linked)
521
+ {
522
+ button->setIcon (linked ? m_chainIcon : m_brokenChainIcon);
523
+ }
524
+
525
+ void
526
+ OptionsWidget::updateFramingsDisplay ()
527
+ {
528
+ extraWMarginSpinBox->setValue (m_framings.getFramingWidth () * 100.0 );
529
+ extraHMarginSpinBox->setValue (m_framings.getFramingHeight () * 100.0 );
530
+ }
531
+
521
532
void
522
533
OptionsWidget::updateSizeDisplay ()
523
534
{
@@ -542,12 +553,6 @@ OptionsWidget::updateSizeDisplay()
542
553
labelExtraHout->setText (tr (" = %1" ).arg (outheight));
543
554
}
544
555
545
- void
546
- OptionsWidget::updateLinkDisplay (QToolButton* button, bool const linked)
547
- {
548
- button->setIcon (linked ? m_chainIcon : m_brokenChainIcon);
549
- }
550
-
551
556
void
552
557
OptionsWidget::enableDisableAlignmentButtons ()
553
558
{
0 commit comments