QGIS API Documentation  2.8.2-Wien
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Protected Attributes | List of all members
CustomLayerOrderModel Class Reference

Public Member Functions

 CustomLayerOrderModel (QgsLayerTreeMapCanvasBridge *bridge, QObject *parent=0)
QVariant data (const QModelIndex &index, int role) const override
bool dropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) override
Qt::ItemFlags flags (const QModelIndex &index) const override
QMimeData * mimeData (const QModelIndexList &indexes) const override
QStringList mimeTypes () const override
QStringList order () const
void refreshModel (const QStringList &order)
bool removeRows (int row, int count, const QModelIndex &parent) override
int rowCount (const QModelIndex &) const override
bool setData (const QModelIndex &index, const QVariant &value, int role) override
Qt::DropActions supportedDropActions () const override
void updateLayerVisibility (const QString &layerId)

Protected Attributes

QgsLayerTreeMapCanvasBridgemBridge
QStringList mOrder

Detailed Description

Definition at line 30 of file qgscustomlayerorderwidget.cpp.

Constructor & Destructor Documentation

CustomLayerOrderModel::CustomLayerOrderModel ( QgsLayerTreeMapCanvasBridge bridge,
QObject *  parent = 0 
)
inline

Definition at line 33 of file qgscustomlayerorderwidget.cpp.

Member Function Documentation

QVariant CustomLayerOrderModel::data ( const QModelIndex &  index,
int  role 
) const
inlineoverride

Definition at line 43 of file qgscustomlayerorderwidget.cpp.

bool CustomLayerOrderModel::dropMimeData ( const QMimeData *  data,
Qt::DropAction  action,
int  row,
int  column,
const QModelIndex &  parent 
)
inlineoverride

Definition at line 116 of file qgscustomlayerorderwidget.cpp.

Qt::ItemFlags CustomLayerOrderModel::flags ( const QModelIndex &  index) const
inlineoverride

Definition at line 86 of file qgscustomlayerorderwidget.cpp.

QMimeData* CustomLayerOrderModel::mimeData ( const QModelIndexList &  indexes) const
inlineoverride

Definition at line 105 of file qgscustomlayerorderwidget.cpp.

QStringList CustomLayerOrderModel::mimeTypes ( ) const
inlineoverride

Definition at line 98 of file qgscustomlayerorderwidget.cpp.

QStringList CustomLayerOrderModel::order ( ) const
inline

Definition at line 161 of file qgscustomlayerorderwidget.cpp.

void CustomLayerOrderModel::refreshModel ( const QStringList &  order)
inline

Definition at line 154 of file qgscustomlayerorderwidget.cpp.

bool CustomLayerOrderModel::removeRows ( int  row,
int  count,
const QModelIndex &  parent 
)
inlineoverride

Definition at line 141 of file qgscustomlayerorderwidget.cpp.

int CustomLayerOrderModel::rowCount ( const QModelIndex &  ) const
inlineoverride

Definition at line 38 of file qgscustomlayerorderwidget.cpp.

bool CustomLayerOrderModel::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role 
)
inlineoverride

Definition at line 71 of file qgscustomlayerorderwidget.cpp.

Qt::DropActions CustomLayerOrderModel::supportedDropActions ( ) const
inlineoverride

Definition at line 93 of file qgscustomlayerorderwidget.cpp.

void CustomLayerOrderModel::updateLayerVisibility ( const QString &  layerId)
inline

Definition at line 163 of file qgscustomlayerorderwidget.cpp.

Member Data Documentation

QgsLayerTreeMapCanvasBridge* CustomLayerOrderModel::mBridge
protected

Definition at line 171 of file qgscustomlayerorderwidget.cpp.

QStringList CustomLayerOrderModel::mOrder
protected

Definition at line 172 of file qgscustomlayerorderwidget.cpp.


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