Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
deck_list_model_custom_zones.cpp File Reference
Include dependency graph for deck_list_model_custom_zones.cpp:

Namespaces

namespace  DeckListModelCustomZones
 Tree-level helpers for the deck list model's custom-zone shadow nodes.

Functions

bool DeckListModelCustomZones::isCustomZone (const AbstractDecklistNode *node)
 Whether the given node is a custom zone (as opposed to a criteria group).
void DeckListModelCustomZones::mirrorCustomZones (const InnerDecklistNode *deckBoardZone, InnerDecklistNode *shadowBoardZone)
 Mirrors the custom zones of a deck board zone into its shadow board node.
InnerDecklistNode * DeckListModelCustomZones::findGroupChild (InnerDecklistNode *parent, const QString &name)
 Finds a criteria-group child of parent by name, skipping custom zones.
DecklistModelSubZoneNode * DeckListModelCustomZones::findSubZoneByName (InnerDecklistNode *root, const QString &zoneName)
 Finds a custom zone in the shadow tree by deck-unique name.
QList< QPair< int, int > > DeckListModelCustomZones::sortWithCustomZonesLast (InnerDecklistNode *root, InnerDecklistNode *node, Qt::SortOrder order)
 Sorts a shadow node's children, keeping a board's custom zones last.