Cockatrice 2026-09-01-Development-3.1.0-beta.10
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
VisualDeckStorageRoles Namespace Reference

Enumerations

enum  {
  FilePathRole = Qt::UserRole + 1 , RelativeFilePathRole , FolderPathRole , DisplayNameRole ,
  TagsRole , ColorIdentityRole , LastModifiedRole , LastLoadedRole ,
  BannerCardNameRole , BannerCardProviderIdRole , FilterMatchRole
}
 Custom roles exposed by the VisualDeckStorageModel. More...

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

Custom roles exposed by the VisualDeckStorageModel.

Enumerator
FilePathRole 

Absolute file path of the deck.

RelativeFilePathRole 

File path relative to the deck folder.

FolderPathRole 

Directory of the deck relative to the deck folder ("" for root).

DisplayNameRole 

Deck name, or the file name if the deck has no name.

TagsRole 

The deck's tags.

ColorIdentityRole 

The deck's color identity (WUBRG order).

LastModifiedRole 

QDateTime of the deck file's last modification.

LastLoadedRole 

QDateTime when the deck was last loaded from the file.

BannerCardNameRole 

Name of the deck's banner card.

BannerCardProviderIdRole 

Provider id of the deck's banner card.

FilterMatchRole 

Whether the row passes the proxy's current search / tag / color filters.

Not served by this model, but by VisualDeckStorageSortFilterProxyModel on top of it. Declared here so every role read through a proxy index stays unique.