Commit 44a35b87 authored by Laurent Montel's avatar Laurent Montel 😁

Make it compile against qt5.15 without deprecated method

parent 37cc92fb
......@@ -86,7 +86,11 @@ ScreenshotDialog::ScreenshotDialog(QDialog *parent, Qt::WindowFlags flags)
QTimer::singleShot(1000 * m_dialog->delaySpinBox->value(), this, &ScreenshotDialog::takeScreenshot);
});
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
connect(m_dialog->areaComboBox, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this, [this] (int index) {
#else
connect(m_dialog->areaComboBox, static_cast<void (QComboBox::*)(int, const QString &)>(&QComboBox::currentIndexChanged) , this, [this] (int index) {
#endif
m_dialog->includeBordersCheckbox->setEnabled(index == 2);
});
......
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