Commit 9dbae3f1 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Revert "Fix build with Qt 5.15"

Summary: This reverts commit 3a5aca82.

Reviewers: broulik

Reviewed By: broulik

Subscribers: broulik, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D28481
parent 447ec312
......@@ -111,14 +111,9 @@ QList< QPair< QString, QWidget* > > WirelessPowerSavingConfig::buildUi()
retlist.append(qMakePair< QString, QWidget* >(i18n("Mobile broadband"), m_wwanCombobox));
retlist.append(qMakePair< QString, QWidget* >(i18n("Bluetooth"), m_btCombobox));
#if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 0))
const auto comboIndexChanged = QOverload<int, const QString&>::of(&QComboBox::currentIndexChanged);
#else
const auto comboIndexChanged = QOverload<int>::of(&QComboBox::currentIndexChanged);
#endif
connect(m_wifiCombobox, comboIndexChanged, this, &WirelessPowerSavingConfig::setChanged);
connect(m_wwanCombobox, comboIndexChanged, this, &WirelessPowerSavingConfig::setChanged);
connect(m_btCombobox, comboIndexChanged, this, &WirelessPowerSavingConfig::setChanged);
connect(m_wifiCombobox, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this, &WirelessPowerSavingConfig::setChanged);
connect(m_wwanCombobox, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this, &WirelessPowerSavingConfig::setChanged);
connect(m_btCombobox, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this, &WirelessPowerSavingConfig::setChanged);
return retlist;
}
......
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