#include <highscoresmodel.h>
Public Types | |
enum | Column { NameColumn, HighScoreColumn, LevelColumn } |
Public Member Functions | |
HighScoresModel (QString gameId, QObject *parent=0) | |
virtual | ~HighScoresModel () |
virtual QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const |
virtual int | columnCount (const QModelIndex &parent=QModelIndex()) const |
virtual int | rowCount (const QModelIndex &parent=QModelIndex()) const |
virtual QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
Definition at line 34 of file highscoresmodel.h.
Definition at line 50 of file highscoresmodel.h.
HighScoresModel::HighScoresModel | ( | QString | gameId, | |
QObject * | parent = 0 | |||
) |
gameId | The game ID which will be used to perform lookup in the online service |
Definition at line 35 of file highscoresmodel.cpp.
HighScoresModel::~HighScoresModel | ( | ) | [virtual] |
Definition at line 42 of file highscoresmodel.cpp.
int HighScoresModel::columnCount | ( | const QModelIndex & | parent = QModelIndex() |
) | const [virtual] |
Definition at line 67 of file highscoresmodel.cpp.
QVariant HighScoresModel::data | ( | const QModelIndex & | index, | |
int | role = Qt::DisplayRole | |||
) | const [virtual] |
Definition at line 47 of file highscoresmodel.cpp.
QVariant HighScoresModel::headerData | ( | int | section, | |
Qt::Orientation | orientation, | |||
int | role = Qt::DisplayRole | |||
) | const [virtual] |
Definition at line 79 of file highscoresmodel.cpp.
int HighScoresModel::rowCount | ( | const QModelIndex & | parent = QModelIndex() |
) | const [virtual] |
Definition at line 73 of file highscoresmodel.cpp.