QGIS API Documentation  2.7.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Protected Attributes | List of all members
CustomLayerOrderModel Class Reference
Inheritance diagram for CustomLayerOrderModel:
Inheritance graph
[legend]

Public Member Functions

 CustomLayerOrderModel (QgsLayerTreeMapCanvasBridge *bridge, QObject *parent=0)
 
QVariant data (const QModelIndex &index, int role) const
 
bool dropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent)
 
Qt::ItemFlags flags (const QModelIndex &index) const
 
QMimeData * mimeData (const QModelIndexList &indexes) const
 
QStringList mimeTypes () const
 
QStringList order () const
 
void refreshModel (const QStringList &order)
 
bool removeRows (int row, int count, const QModelIndex &parent)
 
int rowCount (const QModelIndex &) const
 
bool setData (const QModelIndex &index, const QVariant &value, int role)
 
Qt::DropActions supportedDropActions () const
 
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
inline

Definition at line 43 of file qgscustomlayerorderwidget.cpp.

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

Definition at line 116 of file qgscustomlayerorderwidget.cpp.

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

Definition at line 86 of file qgscustomlayerorderwidget.cpp.

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

Definition at line 105 of file qgscustomlayerorderwidget.cpp.

QStringList CustomLayerOrderModel::mimeTypes ( ) const
inline

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 
)
inline

Definition at line 141 of file qgscustomlayerorderwidget.cpp.

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

Definition at line 38 of file qgscustomlayerorderwidget.cpp.

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

Definition at line 71 of file qgscustomlayerorderwidget.cpp.

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

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: