1 #ifndef TOURNAMENT_RUNNER_GUI_KATA_ROUND_PARTICIPANT_MODEL_H
2 #define TOURNAMENT_RUNNER_GUI_KATA_ROUND_PARTICIPANT_MODEL_H
8 #include <QtCore/QAbstractTableModel>
10 namespace TournamentRunner
15 namespace TournamentRunnerGUI
25 public QAbstractTableModel
41 std::vector<size_t> startlist,
46 int rowCount (
const QModelIndex& parent = QModelIndex())
const final;
51 int columnCount (
const QModelIndex& parent = QModelIndex())
const final;
56 QVariant
data (
const QModelIndex& index,
57 int role = Qt::DisplayRole)
const final;
63 Qt::Orientation orientation,
64 int role = Qt::DisplayRole )
const final;
67 const uint8_t round_{};
69 std::vector<size_t> startlist_;
71 enum participant_model_column_indices
80 index_of_overall_score,
88 #endif // TOURNAMENT_RUNNER_GUI_KATA_ROUND_PARTICIPANT_MODEL_H
int columnCount(const QModelIndex &parent=QModelIndex()) const final
Definition: kata_round_participant_model.cpp:30
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const final
Definition: kata_round_participant_model.cpp:35
The Tournament class is the starting point for the tournament management.
Definition: tournament.h:110
The KataRoundParticipantModel class.
Definition: kata_round_participant_model.h:24
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const final
Definition: kata_round_participant_model.cpp:96
KataRoundParticipantModel(const uint8_t kata_round, TournamentRunner::Tournament &tournament, std::vector< size_t > startlist, QObject *parent=0)
KataRoundParticipantModel.
Definition: kata_round_participant_model.cpp:13
int rowCount(const QModelIndex &parent=QModelIndex()) const final
Definition: kata_round_participant_model.cpp:25