1 #ifndef TOURNAMENT_RUNNER_GUI_PARTICIPANT_MODEL_H
2 #define TOURNAMENT_RUNNER_GUI_PARTICIPANT_MODEL_H
4 #include <QtCore/QAbstractTableModel>
6 namespace TournamentRunner
11 namespace TournamentRunnerGUI
21 public QAbstractTableModel
38 int rowCount (
const QModelIndex& parent = QModelIndex())
const final;
43 int columnCount (
const QModelIndex& parent = QModelIndex())
const final;
48 QVariant
data (
const QModelIndex& index,
49 int role = Qt::DisplayRole)
const final;
55 Qt::Orientation orientation,
56 int role = Qt::DisplayRole )
const final;
58 bool removeRows(
int position,
int rows,
const QModelIndex &index = QModelIndex())
final;
60 Qt::ItemFlags flags(
const QModelIndex &index)
const final;
63 enum participant_model_column_indices
67 index_of_date_of_birth,
80 #endif // TOURNAMENT_RUNNER_GUI_PARTICIPANT_MODEL_H
The ParticipantModel class.
Definition: participant_model.h:20
The Tournament class is the starting point for the tournament management.
Definition: tournament.h:110
int rowCount(const QModelIndex &parent=QModelIndex()) const final
Definition: participant_model.cpp:22
int columnCount(const QModelIndex &parent=QModelIndex()) const final
Definition: participant_model.cpp:27
ParticipantModel(TournamentRunner::Tournament &tournament, QObject *parent=0)
ParticipantModel.
Definition: participant_model.cpp:14
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const final
Definition: participant_model.cpp:77
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const final
Definition: participant_model.cpp:32