QGIS API Documentation  2.6.0-Brighton
 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)
int rowCount (const QModelIndex &) const
QVariant data (const QModelIndex &index, int role) const
bool setData (const QModelIndex &index, const QVariant &value, int role)
Qt::ItemFlags flags (const QModelIndex &index) const
Qt::DropActions supportedDropActions () const
QStringList mimeTypes () const
QMimeData * mimeData (const QModelIndexList &indexes) const
bool dropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent)
bool removeRows (int row, int count, const QModelIndex &parent)
void refreshModel (const QStringList &order)
QStringList order () const
void updateLayerVisibility (const QString &layerId)

Protected Attributes

QgsLayerTreeMapCanvasBridgemBridge
QStringList mOrder

Constructor & Destructor Documentation

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

Member Function Documentation

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

Member Data Documentation

QgsLayerTreeMapCanvasBridge* CustomLayerOrderModel::mBridge
protected
QStringList CustomLayerOrderModel::mOrder
protected

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