Model which contains a list of the installed games. More...
#include <gamesmodel.h>
Public Types | |
enum | Column { PathColumn, NameColumn, DescriptionColumn, IdColumn } |
Public Member Functions | |
GamesModel (QObject *parent=0) | |
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 |
Model which contains a list of the installed games.
This model can be used to obtain a list of all the installed games Use the different columns of the model to obtain required properties.
Definition at line 37 of file gamesmodel.h.
Definition at line 46 of file gamesmodel.h.
GamesModel::GamesModel | ( | QObject * | parent = 0 |
) |
Definition at line 31 of file gamesmodel.cpp.
int GamesModel::columnCount | ( | const QModelIndex & | parent = QModelIndex() |
) | const [virtual] |
Definition at line 77 of file gamesmodel.cpp.
QVariant GamesModel::data | ( | const QModelIndex & | index, | |
int | role = Qt::DisplayRole | |||
) | const [virtual] |
Definition at line 37 of file gamesmodel.cpp.
QVariant GamesModel::headerData | ( | int | section, | |
Qt::Orientation | orientation, | |||
int | role = Qt::DisplayRole | |||
) | const [virtual] |
Definition at line 89 of file gamesmodel.cpp.
int GamesModel::rowCount | ( | const QModelIndex & | parent = QModelIndex() |
) | const [virtual] |
Definition at line 83 of file gamesmodel.cpp.