Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
token_display_model.h
Go to the documentation of this file.
1
6
7#ifndef COCKATRICE_TOKEN_DISPLAY_MODEL_H
8#define COCKATRICE_TOKEN_DISPLAY_MODEL_H
9
11
13{
14 Q_OBJECT
15public:
16 explicit TokenDisplayModel(QObject *parent = nullptr);
17 [[nodiscard]] int rowCount(const QModelIndex &parent = QModelIndex()) const override;
18
19protected:
20 [[nodiscard]] bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const override;
21};
22
23#endif // COCKATRICE_TOKEN_DISPLAY_MODEL_H
The CardDatabaseDisplayModel is a QSortFilterProxyModel that allows applying filters and sorting to a...
CardDatabaseDisplayModel(QObject *parent=nullptr)
Definition card_database_display_model.cpp:5
int rowCount(const QModelIndex &parent=QModelIndex()) const override
Definition token_display_model.cpp:15
bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const override
Definition token_display_model.cpp:9
TokenDisplayModel(QObject *parent=nullptr)
Definition token_display_model.cpp:5