mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-20 17:32:15 -07:00
Fix builds on Qt5
This commit is contained in:
parent
099cbd8351
commit
1581712fc9
1 changed files with 4 additions and 2 deletions
|
|
@ -120,8 +120,10 @@ ZoneViewWidget::ZoneViewWidget(Player *_player,
|
|||
|
||||
// only wire up sort options after creating ZoneViewZone, since it segfaults otherwise.
|
||||
if (numberCards < 0) {
|
||||
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(&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()));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue