Cockatrice/libcockatrice_models/libcockatrice/models/deck_list
Lukas Brübach e221d8e1bb
[Models] Route group lookups around mirrored custom zones
Group lookups (createNodeIfNeeded, findCardNode) must not resolve a
mirrored custom zone that shares the group name. Introduce
findGroupChild to search only non-custom children, and make addCard
consult the deck tree before falling back to creating a top-level zone
so cards added to an un-mirrored custom zone land inside it.

mirrorCustomZones now flattens cards nested at any depth into the
mirrored zone so no card is left without a model row.

Add model behaviour tests (addCard routing, same-name group/zone
collision, removeRows guard, empty-zone survival, findCard inside a
custom zone) and fix the missing main() in the unit test binaries.
2026-09-05 20:19:29 +02:00
..
CMakeLists.txt [Models] Mirror custom deck zones in the deck list model 2026-09-05 20:19:29 +02:00
deck_list_model.cpp [Models] Route group lookups around mirrored custom zones 2026-09-05 20:19:29 +02:00
deck_list_model.h [Models] Mirror custom deck zones in the deck list model 2026-09-05 20:19:29 +02:00
deck_list_model_custom_zones.cpp [Models] Route group lookups around mirrored custom zones 2026-09-05 20:19:29 +02:00
deck_list_model_custom_zones.h [Models] Route group lookups around mirrored custom zones 2026-09-05 20:19:29 +02:00
deck_list_sort_filter_proxy_model.cpp Run formatter on all our files (#6942) 2026-05-26 15:11:38 -07:00
deck_list_sort_filter_proxy_model.h Standardize Doxygen documentation (#6885) 2026-05-21 22:58:07 +02:00