19 #ifndef PGN_DATABASE_MODEL_H 20 #define PGN_DATABASE_MODEL_H 22 #include <QAbstractItemModel> 25 #include "pgndatabase.h" 26 #include "gamedatabasemanager.h" 52 virtual QVariant headerData(
int section, Qt::Orientation orientation,
53 int role = Qt::DisplayRole)
const;
54 virtual Qt::ItemFlags flags(
const QModelIndex& index)
const;
56 int role = Qt::EditRole);
59 void onDatabaseAdded(
int index);
60 void onDatabaseAboutToBeRemoved(
int index);
61 void onDatabasesReset();
67 #endif // PGN_DATABASE_MODEL_H
Manages chess game databases.
Definition: gamedatabasemanager.h:34
Supplies PGN database information to views.
Definition: pgndatabasemodel.h:33
PgnDatabaseModel(GameDatabaseManager *gameDatabaseManager, QObject *parent=nullptr)
Definition: pgndatabasemodel.cpp:22