Files
cinema-ticket-management-sy…/ui/models/halls_model.h
T

28 lines
623 B
C++
Raw Normal View History

2026-07-12 14:34:52 +04:00
#ifndef HALLS_MODEL_H
#define HALLS_MODEL_H
#include "base_sql_table_model.h"
class HallsModel : public BaseSqlTableModel {
Q_OBJECT
public:
// Enum for columns
enum HallsColumns { Id, Name, Capacity };
public:
explicit HallsModel(QObject *parent, const QSqlDatabase &database);
// Initealize the model
void initialize();
// Overlooking class BaseSqlTableModel methods
QVariant headerData(int section, Qt::Orientation orientation,
int role = Qt::DisplayRole) const override;
inline bool isCompleteDatabaseFiltering() const final { return true; };
};
#endif // HALLS_MODEL_H