Gui: [skip ci] fix bug when keyboard tracking for QuantitySpinBox is disabled and value is changed by mouse wheel or the spin buttons
This commit is contained in:
@@ -792,6 +792,8 @@ void QuantitySpinBox::stepBy(int steps)
|
||||
{
|
||||
Q_D(QuantitySpinBox);
|
||||
|
||||
handlePendingEmit();
|
||||
|
||||
double step = d->singleStep * steps;
|
||||
double val = d->unitValue + step;
|
||||
if (val > d->maximum)
|
||||
@@ -800,7 +802,6 @@ void QuantitySpinBox::stepBy(int steps)
|
||||
val = d->minimum;
|
||||
|
||||
lineEdit()->setText(QString::fromUtf8("%L1 %2").arg(val).arg(d->unitStr));
|
||||
handlePendingEmit();
|
||||
update();
|
||||
selectNumber();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user