API Documentation
|
Used for showing Layers in a table using the QAbstractItemModel interface. More...
#include <LayerWidget.h>
Public Member Functions | |
QVector< int > | cacheObject (UUID id) |
int | columnCount (const QModelIndex &parent=QModelIndex()) const override |
QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const override |
bool | hasChildren (const QModelIndex &parent=QModelIndex()) const override |
QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const override |
LayerModel (QTModelManager *manager) | |
const Buffer< UUID > & | layers () const |
QModelIndex | parent (const QModelIndex &child) const override |
int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override |
Protected Slots | |
void | layerAddedSlot (Buffer< UUID > layer) |
void | layerUpdated (UUID layer) |
void | onClearAllSlot () |
Protected Attributes | |
Dictionary< UUID, LayerCacheObject > | m_layer_cache |
Buffer< UUID > | m_layers |
QTModelManager * | m_manager |
Used for showing Layers in a table using the QAbstractItemModel interface.
LayerModel | ( | QTModelManager * | manager | ) |
QVector< int > cacheObject | ( | UUID | id | ) |
|
override |
|
override |
|
override |
|
override |
|
protectedslot |
|
protectedslot |
|
override |
|
override |
|
override |
|
mutableprotected |
|
protected |