Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
Deck Models

Qt Models relating to DeckList. More...

Collaboration diagram for Deck Models:

Classes

class  AbstractDecklistCardNode
 Abstract base class for all deck list nodes that represent actual card entries. More...
class  AbstractDecklistNode
 Base class for all nodes in the deck list tree. More...
class  DecklistCardNode
 Concrete node type representing an actual card entry in the deck. More...
class  DecklistModelCardNode
 Adapter node that wraps a DecklistCardNode for use in the DeckListModel tree. More...
class  DeckListModel
 Qt model representing a decklist for use in views (tree/table). More...

Enumerations

enum  DeckSortMethod { ByNumber , ByName , Default }
 Defines the different sort strategies a node may use to order its children. More...

Detailed Description

Qt Models relating to DeckList.

Enumeration Type Documentation

◆ DeckSortMethod

Defines the different sort strategies a node may use to order its children.

Sorting behavior is typically set by the DeckListModel when the user requests sorting in the UI.

  • ByNumber: Sort numerically (often by collector number).
  • ByName: Sort alphabetically by card name.
  • Default: No explicit sorting; insertion order is preserved.
Enumerator
ByNumber 

Sort by numeric properties (e.g. collector number).

ByName 

Sort by card name (locale-aware comparison).

Default 

Leave in insertion order.