Commit 8e7c3a1c authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Qt guys reverted api in qt5.15

parent 39fcea3e
......@@ -309,7 +309,6 @@ void TranslatorWidget::init()
slotFromLanguageChanged(0, true);
slotTextChanged();
readConfig();
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
connect(d->from, QOverload<int>::of(&QComboBox::currentIndexChanged), this, [this](int val) {
slotFromLanguageChanged(val, false);
slotConfigChanged();
......@@ -318,16 +317,6 @@ void TranslatorWidget::init()
slotConfigChanged();
slotTranslate();
});
#else
connect(d->from, QOverload<int, const QString &>::of(&QComboBox::currentIndexChanged), this, [this](int val) {
slotFromLanguageChanged(val, false);
slotConfigChanged();
});
connect(d->to, QOverload<int, const QString &>::of(&QComboBox::currentIndexChanged), this, [this]() {
slotConfigChanged();
slotTranslate();
});
#endif
hide();
setSizePolicy(QSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed));
......
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