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