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

Make it compile against qt5.15

parent cce42154
......@@ -141,7 +141,11 @@ void SignatureConfigurator::Private::init()
QStackedWidget *widgetStack = new QStackedWidget(q);
widgetStack->setEnabled(false); // since !mEnableCheck->isChecked()
vlay->addWidget(widgetStack, 1);
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
q->connect(mSourceCombo, QOverload<int>::of(&QComboBox::currentIndexChanged), widgetStack, &QStackedWidget::setCurrentIndex);
#else
q->connect(mSourceCombo, QOverload<int, const QString &>::of(&QComboBox::currentIndexChanged), widgetStack, &QStackedWidget::setCurrentIndex);
#endif
q->connect(mSourceCombo, QOverload<int>::of(&QComboBox::highlighted), widgetStack, &QStackedWidget::setCurrentIndex);
// connects for the enabling of the widgets depending on
// signatureEnabled:
......
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