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
// 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);
connect(d->ratioComboBox, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &CropWidget::slotRatioComboBoxChanged);
connect(d->ratioComboBox, QOverload<int, const QString &>::of(&QComboBox::currentIndexChanged), this, &CropWidget::slotRatioComboBoxChanged);
// 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