Commit 1dda9f48 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

Revert "Port deprecated signal"

This reverts commit b1ae993c.
parent 62f8d36c
......@@ -409,11 +409,7 @@ CropWidget::CropWidget(QWidget* parent, RasterImageView* imageView, CropTool* cr
// Index Changed: required so that choosing an item with the same text is detected (e.g. going from US Letter portrait
// to US Letter landscape)
connect(d->ratioComboBox, &QComboBox::editTextChanged, this, &CropWidget::slotRatioComboBoxChanged);
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
connect(d->ratioComboBox, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &CropWidget::slotRatioComboBoxChanged);
#else
connect(d->ratioComboBox, QOverload<int, const QString &>::of(&QComboBox::currentIndexChanged), this, &CropWidget::slotRatioComboBoxChanged);
#endif
// Don't do this before signals are connected, otherwise the tool won't get
// initialized
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment