Commit b1ae993c authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port deprecated signal

parent 6ce5ccb0
...@@ -409,7 +409,11 @@ CropWidget::CropWidget(QWidget* parent, RasterImageView* imageView, CropTool* cr ...@@ -409,7 +409,11 @@ 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 // 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) // to US Letter landscape)
connect(d->ratioComboBox, &QComboBox::editTextChanged, this, &CropWidget::slotRatioComboBoxChanged); 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); 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 // Don't do this before signals are connected, otherwise the tool won't get
// initialized // 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