Walls And Holes  1
TileMaterialSet Class Reference

#include <tilematerialset.h>

Inheritance diagram for TileMaterialSet:
Collaboration diagram for TileMaterialSet:

Public Member Functions

void addMaterial (TileMaterial *material)
 
void removeMaterial (int index)
 
TileMaterialmaterialAt (int index)
 
const TileMaterialmaterialAt (int index) const
 
TileMaterialmaterialInSet (const TileMaterial &material)
 materialInSet If the given material is equal to one already in the set, then a pointer to the one in the set is returned, otherwise a nullptr is returned. More...
 
int size () const
 
QModelIndex index (int row, int, const QModelIndex &parent=QModelIndex()) const override
 
QModelIndex parent (const QModelIndex &) const override
 
int rowCount (const QModelIndex &parent=QModelIndex()) const override
 
int columnCount (const QModelIndex &parent=QModelIndex()) const override
 
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const override
 
bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override
 
QMimeData * mimeData (const QModelIndexList &indexes) const override
 
Qt::ItemFlags flags (const QModelIndex &index) const override
 

Static Public Member Functions

static TileMaterialSetgetInstance ()
 

Member Function Documentation

◆ addMaterial()

void TileMaterialSet::addMaterial ( TileMaterial material)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ columnCount()

int TileMaterialSet::columnCount ( const QModelIndex &  parent = QModelIndex()) const
override
Here is the call graph for this function:

◆ data()

QVariant TileMaterialSet::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const
override
Here is the call graph for this function:
Here is the caller graph for this function:

◆ flags()

Qt::ItemFlags TileMaterialSet::flags ( const QModelIndex &  index) const
override
Here is the call graph for this function:

◆ getInstance()

TileMaterialSet * TileMaterialSet::getInstance ( )
static
Here is the caller graph for this function:

◆ index()

QModelIndex TileMaterialSet::index ( int  row,
int  ,
const QModelIndex &  parent = QModelIndex() 
) const
override
Here is the call graph for this function:
Here is the caller graph for this function:

◆ materialAt() [1/2]

TileMaterial * TileMaterialSet::materialAt ( int  index)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ materialAt() [2/2]

const TileMaterial * TileMaterialSet::materialAt ( int  index) const
Here is the call graph for this function:

◆ materialInSet()

TileMaterial * TileMaterialSet::materialInSet ( const TileMaterial material)

materialInSet If the given material is equal to one already in the set, then a pointer to the one in the set is returned, otherwise a nullptr is returned.

Parameters
material
Returns

◆ mimeData()

QMimeData * TileMaterialSet::mimeData ( const QModelIndexList &  indexes) const
override

◆ parent()

QModelIndex TileMaterialSet::parent ( const QModelIndex &  ) const
override
Here is the caller graph for this function:

◆ removeMaterial()

void TileMaterialSet::removeMaterial ( int  index)
Here is the call graph for this function:

◆ rowCount()

int TileMaterialSet::rowCount ( const QModelIndex &  parent = QModelIndex()) const
override
Here is the call graph for this function:

◆ setData()

bool TileMaterialSet::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role = Qt::EditRole 
)
override
Here is the call graph for this function:

◆ size()

int TileMaterialSet::size ( ) const
inline
Here is the caller graph for this function:

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