Skip to content

Commit 32da598

Browse files
committed
Fixed wheel behavior on spin boxes in Properties view
Small regression in b081934 caused the mouse wheel to affect the value of unfocused spin boxes again.
1 parent c200e16 commit 32da598

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tiled/propertiesview.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ QWidget *IntProperty::createEditor(QWidget *parent)
283283
connect(slider, &QSlider::valueChanged, this, &IntProperty::setValue);
284284
}
285285

286-
auto spinBox = new ExpressionSpinBox(parent);
286+
auto spinBox = new SpinBox(parent);
287287
spinBox->setRange(m_minimum, m_maximum);
288288
spinBox->setSingleStep(m_singleStep);
289289
spinBox->setSuffix(m_suffix);
@@ -516,7 +516,7 @@ QWidget *FontProperty::createEditor(QWidget *parent)
516516
auto editor = new QWidget(parent);
517517
auto fontComboBox = new QFontComboBox(editor);
518518

519-
auto sizeSpinBox = new ExpressionSpinBox(editor);
519+
auto sizeSpinBox = new SpinBox(editor);
520520
sizeSpinBox->setRange(1, 999);
521521
sizeSpinBox->setSuffix(tr(" px"));
522522
sizeSpinBox->setKeyboardTracking(false);

0 commit comments

Comments
 (0)