![]() |
Vespucci
1.0.0
|
The MapListModel class Exposes the UI to the contents of the master map list. More...
#include <maplistmodel.h>
Public Member Functions | |
| MapListModel (QObject *parent, VespucciDataset *dataset) | |
| MapListModel () | |
| int | rowCount (const QModelIndex &parent) const |
| bool | removeRow (int row, const QModelIndex &parent) |
| bool | AddMap (QSharedPointer< MapData > map) |
| QSharedPointer< MapData > | MapAt (int row) |
| QVariant | data (const QModelIndex &index, int role) const |
| MapListModel::data. More... | |
| void | ClearMaps () |
| MapListModel::ClearMaps Clears the map container. Used when closing the program. More... | |
The MapListModel class Exposes the UI to the contents of the master map list.
Definition at line 33 of file maplistmodel.h.
| MapListModel::MapListModel | ( | QObject * | parent, |
| VespucciDataset * | dataset | ||
| ) |
Definition at line 22 of file maplistmodel.cpp.
| MapListModel::MapListModel | ( | ) |
| bool MapListModel::AddMap | ( | QSharedPointer< MapData > | map | ) |
Definition at line 58 of file maplistmodel.cpp.
| void MapListModel::ClearMaps | ( | ) |
MapListModel::ClearMaps Clears the map container. Used when closing the program.
Definition at line 77 of file maplistmodel.cpp.
| QVariant MapListModel::data | ( | const QModelIndex & | index, |
| int | role | ||
| ) | const |
| index | |
| role | The role (will always be Qt::DisplayRole (to display map name) |
Definition at line 39 of file maplistmodel.cpp.
| QSharedPointer< MapData > MapListModel::MapAt | ( | int | row | ) |
Definition at line 69 of file maplistmodel.cpp.
| bool MapListModel::removeRow | ( | int | row, |
| const QModelIndex & | parent | ||
| ) |
Definition at line 49 of file maplistmodel.cpp.
| int MapListModel::rowCount | ( | const QModelIndex & | parent | ) | const |
Definition at line 28 of file maplistmodel.cpp.