mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Fixed deprecated method QComboBox::currentIndexChanged (#2511)
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
This commit is contained in:
parent
d1a10d3c1f
commit
cd1f4d0c78
1 changed files with 4 additions and 6 deletions
|
@ -172,13 +172,11 @@ public:
|
||||||
this->managedConnections_);
|
this->managedConnections_);
|
||||||
|
|
||||||
QObject::connect(
|
QObject::connect(
|
||||||
combo,
|
combo, QOverload<const int>::of(&QComboBox::currentIndexChanged),
|
||||||
QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
|
||||||
// &QComboBox::editTextChanged,
|
|
||||||
[combo, &setting,
|
[combo, &setting,
|
||||||
setValue = std::move(setValue)](const QString &newValue) {
|
setValue = std::move(setValue)](const int newIndex) {
|
||||||
setting = setValue(
|
setting = setValue(DropdownArgs{combo->itemText(newIndex),
|
||||||
DropdownArgs{newValue, combo->currentIndex(), combo});
|
combo->currentIndex(), combo});
|
||||||
getApp()->windows->forceLayoutChannelViews();
|
getApp()->windows->forceLayoutChannelViews();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue