Commit 4d6288df authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Make it compile against last qt5.15 without deprecated method

parent a6840665
......@@ -70,8 +70,11 @@ KSWidget::KSWidget(const Platform::GrabModes &theGrabModes, QWidget *parent) :
mTransientWithParentAvailable = true;
}
mCaptureArea->setMinimumWidth(240);
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
connect(mCaptureArea, qOverload<int>(&QComboBox::currentIndexChanged), this, &KSWidget::captureModeChanged);
#else
connect(mCaptureArea, qOverload<int, const QString &>(&QComboBox::currentIndexChanged), this, &KSWidget::captureModeChanged);
#endif
mDelayMsec = new SmartSpinBox(this);
mDelayMsec->setDecimals(1);
mDelayMsec->setSingleStep(1.0);
......
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