Kata Tournament Runner  0.1.00
 All Classes Namespaces Functions Variables Enumerations Groups Pages
Public Member Functions | List of all members
TournamentRunnerGUI::ParticipantModel Class Reference

The ParticipantModel class. More...

#include <participant_model.h>

Inheritance diagram for TournamentRunnerGUI::ParticipantModel:
Inheritance graph
[legend]
Collaboration diagram for TournamentRunnerGUI::ParticipantModel:
Collaboration graph
[legend]

Public Member Functions

 ParticipantModel (TournamentRunner::Tournament &tournament, QObject *parent=0)
 ParticipantModel. More...
 
int rowCount (const QModelIndex &parent=QModelIndex()) const final
 
int columnCount (const QModelIndex &parent=QModelIndex()) const final
 
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const final
 
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const final
 
bool removeRows (int position, int rows, const QModelIndex &index=QModelIndex()) final
 
Qt::ItemFlags flags (const QModelIndex &index) const final
 

Detailed Description

The ParticipantModel class.

The model for the participant table view

Constructor & Destructor Documentation

TournamentRunnerGUI::ParticipantModel::ParticipantModel ( TournamentRunner::Tournament &  tournament,
QObject *  parent = 0 
)
explicit

ParticipantModel.

Parameters
tournamentReference to the tournament
parentParent widget

Member Function Documentation

int TournamentRunnerGUI::ParticipantModel::columnCount ( const QModelIndex &  parent = QModelIndex()) const
final

QVariant TournamentRunnerGUI::ParticipantModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const
final

Here is the call graph for this function:

QVariant TournamentRunnerGUI::ParticipantModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const
final

int TournamentRunnerGUI::ParticipantModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const
final

Return the number of registred participant

Here is the call graph for this function:


The documentation for this class was generated from the following files: