Commit 855b291a authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix compilation with more recent Qt 5.15

parent c2657842
...@@ -129,11 +129,7 @@ TestScriptWidget::TestScriptWidget(QWidget *parent) ...@@ -129,11 +129,7 @@ TestScriptWidget::TestScriptWidget(QWidget *parent)
mScriptCombo = new QComboBox; mScriptCombo = new QComboBox;
vScriptLayout->addWidget(mScriptCombo); vScriptLayout->addWidget(mScriptCombo);
fillScriptCombo(mScriptCombo); fillScriptCombo(mScriptCombo);
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
connect(mScriptCombo, qOverload<int>(&QComboBox::currentIndexChanged), this, &TestScriptWidget::slotCurrentIndexChanged); connect(mScriptCombo, qOverload<int>(&QComboBox::currentIndexChanged), this, &TestScriptWidget::slotCurrentIndexChanged);
#else
connect(mScriptCombo, qOverload<int, const QString &>(&QComboBox::currentIndexChanged), this, &TestScriptWidget::slotCurrentIndexChanged);
#endif
mScriptEdit = new QTextEdit; mScriptEdit = new QTextEdit;
......
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