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

#include <token_edit_model.h>

Inheritance diagram for TokenEditModel:
[legend]
Collaboration diagram for TokenEditModel:
[legend]

Public Member Functions

 TokenEditModel (QObject *parent=nullptr)
int rowCount (const QModelIndex &parent=QModelIndex()) const override
Public Member Functions inherited from CardDatabaseDisplayModel
 CardDatabaseDisplayModel (QObject *parent=nullptr)
void setFilterTree (FilterTree *_filterTree)
void setIsToken (FilterBool _isToken)
void setCardName (const QString &_cardName)
void setStringFilter (const QString &_src)
void setCardNameSet (const QSet< QString > &_cardNameSet)
void dirty ()
void clearFilterAll ()
int rowCount (const QModelIndex &parent=QModelIndex()) const override
bool canFetchMore (const QModelIndex &parent) const override
void fetchMore (const QModelIndex &parent) override

Protected Member Functions

bool filterAcceptsRow (int sourceRow, const QModelIndex &sourceParent) const override
Protected Member Functions inherited from CardDatabaseDisplayModel
bool lessThan (const QModelIndex &left, const QModelIndex &right) const override
bool filterAcceptsRow (int sourceRow, const QModelIndex &sourceParent) const override
bool rowMatchesCardName (CardInfoPtr info) const

Additional Inherited Members

Public Types inherited from CardDatabaseDisplayModel
enum  FilterBool { ShowTrue , ShowFalse , ShowAll }
Signals inherited from CardDatabaseDisplayModel
void modelDirty ()
Static Protected Member Functions inherited from CardDatabaseDisplayModel
static int lessThanNumerically (const QString &left, const QString &right)

Constructor & Destructor Documentation

◆ TokenEditModel()

TokenEditModel::TokenEditModel ( QObject * parent = nullptr)
explicit
Here is the call graph for this function:

Member Function Documentation

◆ filterAcceptsRow()

bool TokenEditModel::filterAcceptsRow ( int sourceRow,
const QModelIndex & sourceParent ) const
nodiscardoverrideprotected
Here is the call graph for this function:

◆ rowCount()

int TokenEditModel::rowCount ( const QModelIndex & parent = QModelIndex()) const
nodiscardoverride

The documentation for this class was generated from the following files: