1 #ifndef TOURNAMENT_RUNNER_GUI_PARTICIPANT_RANKING_MODEL_H
2 #define TOURNAMENT_RUNNER_GUI_PARTICIPANT_RANKING_MODEL_H
6 #include <QtCore/QAbstractTableModel>
8 #include "tournament_runner/karateka.h"
9 #include "tournament_runner/tournament.h"
13 namespace TournamentRunnerGUI
23 public QAbstractTableModel
40 int rowCount (
const QModelIndex& parent = QModelIndex())
const final;
45 int columnCount (
const QModelIndex& parent = QModelIndex())
const final;
50 QVariant
data (
const QModelIndex& index,
51 int role = Qt::DisplayRole)
const final;
57 Qt::Orientation orientation,
58 int role = Qt::DisplayRole )
const final;
61 enum participant_model_column_indices
65 index_overall_score_1,
68 index_overall_score_2,
71 index_overall_score_3,
77 std::vector<Tournament::RankAnnotatedParticipant> annotated_ranked_list_;
82 #endif // TOURNAMENT_RUNNER_GUI_PARTICIPANT_RANKING_MODEL_H
int columnCount(const QModelIndex &parent=QModelIndex()) const final
Definition: participant_ranking_model.cpp:27
The Tournament class is the starting point for the tournament management.
Definition: tournament.h:110
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const final
Definition: participant_ranking_model.cpp:32
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const final
Definition: participant_ranking_model.cpp:111
int rowCount(const QModelIndex &parent=QModelIndex()) const final
Definition: participant_ranking_model.cpp:22
The ParticipantRankingModel.
Definition: participant_ranking_model.h:22
ParticipantRankingModel(TournamentRunner::Tournament &tournament, QObject *parent=0)
ParticipantRankingModel.
Definition: participant_ranking_model.cpp:14