mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-03-21 17:55:21 -05:00
24 lines
623 B
C++
24 lines
623 B
C++
/**
|
|
* @file token_display_model.h
|
|
* @ingroup CardDatabaseModels
|
|
* @brief TODO: Document this.
|
|
*/
|
|
|
|
#ifndef COCKATRICE_TOKEN_DISPLAY_MODEL_H
|
|
#define COCKATRICE_TOKEN_DISPLAY_MODEL_H
|
|
|
|
#include "../card_database_display_model.h"
|
|
|
|
class TokenDisplayModel : public CardDatabaseDisplayModel
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit TokenDisplayModel(QObject *parent = nullptr);
|
|
[[nodiscard]] int rowCount(const QModelIndex &parent = QModelIndex()) const override;
|
|
|
|
protected:
|
|
[[nodiscard]] bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const override;
|
|
};
|
|
|
|
#endif // COCKATRICE_TOKEN_DISPLAY_MODEL_H
|