Vespucci  1.0.0
MapListModel Class Reference

The MapListModel class Exposes the UI to the contents of the master map list. More...

#include <maplistmodel.h>

Inheritance diagram for MapListModel:

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< MapDataMapAt (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...
 

Detailed Description

The MapListModel class Exposes the UI to the contents of the master map list.

Definition at line 33 of file maplistmodel.h.

Constructor & Destructor Documentation

MapListModel::MapListModel ( QObject *  parent,
VespucciDataset dataset 
)

Definition at line 22 of file maplistmodel.cpp.

MapListModel::MapListModel ( )

Member Function Documentation

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

MapListModel::data.

Parameters
index
roleThe role (will always be Qt::DisplayRole (to display map name)
Returns
A re-implementation of QAbstractItemModel::data();

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.


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