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:
parent
da0bae5430
commit
6a59f0fe4d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user