Skip to content

Commit b1e2465

Browse files
committed
Fixed compiling on older Qt.
1 parent 6a5c607 commit b1e2465

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

common/lc_propertieswidget.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,12 @@ void lcPropertiesWidget::AddFloatProperty(lcObjectPropertyId PropertyId, const Q
574574

575575
connect(Widget, &lcDoubleSpinBox::EditingCanceled, this, &lcPropertiesWidget::FloatEditingCanceled);
576576
connect(Widget, &lcDoubleSpinBox::EditingFinished, this, &lcPropertiesWidget::FloatEditingFinished);
577+
578+
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
579+
connect(Widget, QOverload<const QString&>::of(&lcDoubleSpinBox::valueChanged), this, &lcPropertiesWidget::FloatChanged);
580+
#else
577581
connect(Widget, &lcDoubleSpinBox::textChanged, this, &lcPropertiesWidget::FloatChanged);
582+
#endif
578583

579584
mLayout->addWidget(Widget, mLayoutRow, 2);
580585

0 commit comments

Comments
 (0)