mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-29 18:13:55 -07:00
Add more sort options to hand sort (#6279)
* Add more sort options to hand sort Took 14 minutes * Move defaultOptions up a level * Directly pass sort order as param * fix include * revert * fallback expandSortOption
This commit is contained in:
parent
6bc2293292
commit
757e9f3415
6 changed files with 74 additions and 14 deletions
|
|
@ -111,12 +111,13 @@ void HandZone::reorganizeCards()
|
|||
update();
|
||||
}
|
||||
|
||||
void HandZone::sortHand()
|
||||
void HandZone::sortHand(const QList<CardList::SortOption> &options)
|
||||
{
|
||||
if (getLogic()->getCards().isEmpty()) {
|
||||
return;
|
||||
}
|
||||
getLogic()->sortCards({CardList::SortByMainType, CardList::SortByManaValue, CardList::SortByColorGrouping});
|
||||
|
||||
getLogic()->sortCards(options);
|
||||
reorganizeCards();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue