Fix builds on Qt5

This commit is contained in:
ZeldaZach 2024-11-29 10:31:38 -05:00
parent 76ee4d10a8
commit 099cbd8351
No known key found for this signature in database

View file

@ -120,8 +120,8 @@ ZoneViewWidget::ZoneViewWidget(Player *_player,
// only wire up sort options after creating ZoneViewZone, since it segfaults otherwise.
if (numberCards < 0) {
connect(&groupBySelector, &QComboBox::currentIndexChanged, this, &ZoneViewWidget::processGroupBy);
connect(&sortBySelector, &QComboBox::currentIndexChanged, this, &ZoneViewWidget::processSortBy);
connect(&groupBySelector, static_cast<void(QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this, &ZoneViewWidget::processGroupBy);
connect(&sortBySelector, static_cast<void(QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this, &ZoneViewWidget::processSortBy);
connect(&pileViewCheckBox, &QCheckBox::QT_STATE_CHANGED, this, &ZoneViewWidget::processSetPileView);
groupBySelector.setCurrentIndex(groupBySelector.findData(SettingsCache::instance().getZoneViewGroupBy()));
sortBySelector.setCurrentIndex(sortBySelector.findData(SettingsCache::instance().getZoneViewSortBy()));