Cockatrice 2026-10-19-Development-3.1.2-beta.2
A 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
12#include <QModelIndex>
13#include <qtmetamacros.h>
14
15class QObject;
16
18{
19 Q_OBJECT
20public:
21 explicit TokenDisplayModel(QObject *parent = nullptr);
22 [[nodiscard]] int rowCount(const QModelIndex &parent = QModelIndex()) const override;
23
24protected:
25 [[nodiscard]] bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const override;
26};
27
28#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:22
int rowCount(const QModelIndex &parent=QModelIndex()) const override
Definition token_display_model.cpp:21
bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const override
Definition token_display_model.cpp:15
TokenDisplayModel(QObject *parent=nullptr)
Definition token_display_model.cpp:11