1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

refactor(Qt): fix build with Qt 5.15 again

A deprecated function was previously replaced with an overload that
also got recently deprecated [1].

1. https://code.qt.io/cgit/qt/qtbase.git/commit/?h=5.15&id=46ebd11e
This commit is contained in:
Jimi Huotari 2020-04-03 00:36:07 +03:00
parent da0bae5430
commit 6a59f0fe4d

View File

@ -38,7 +38,7 @@ SearchSettingsForm::SearchSettingsForm(QWidget *parent) :
reloadTheme();
#if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 0))
connect(ui->startSearchComboBox, QOverload<int, const QString &>::of(&QComboBox::currentIndexChanged),
connect(ui->startSearchComboBox, QOverload<int>::of(&QComboBox::currentIndexChanged),
#else
connect(ui->startSearchComboBox, static_cast<void(QComboBox::*)(int)>(&QComboBox::currentIndexChanged),
#endif