16#ifndef QGSCUSTOMLAYERORDERWIDGET_H 
   17#define QGSCUSTOMLAYERORDERWIDGET_H 
   21#include <QAbstractListModel> 
   24class CustomLayerOrderModel;
 
   53    void bridgeHasCustomLayerOrderChanged( 
bool state );
 
   54    void bridgeCustomLayerOrderChanged();
 
   63    QCheckBox *mChkOverride = 
nullptr;
 
   64    CustomLayerOrderModel *mModel = 
nullptr;
 
   65    QListView *mView = 
nullptr;
 
 
   71class CustomLayerOrderModel : 
public QAbstractListModel
 
   78    int rowCount( 
const QModelIndex & ) 
const override;
 
   80    QVariant data( 
const QModelIndex &index, 
int role ) 
const override;
 
   82    bool setData( 
const QModelIndex &index, 
const QVariant &value, 
int role ) 
override;
 
   84    Qt::ItemFlags flags( 
const QModelIndex &index ) 
const override;
 
   86    Qt::DropActions supportedDropActions() 
const override;
 
   88    QStringList mimeTypes() 
const override;
 
   90    QMimeData *mimeData( 
const QModelIndexList &indexes ) 
const override;
 
   92    bool dropMimeData( 
const QMimeData *data, Qt::DropAction action, 
int row, 
int column, 
const QModelIndex &parent ) 
override;
 
   94    bool removeRows( 
int row, 
int count, 
const QModelIndex &parent ) 
override;
 
   96    void refreshModel( 
const QList<QgsMapLayer *> &order );
 
   98    QStringList order()
 const { 
return mOrder; }
 
  100    void updateLayerVisibility( 
const QString &layerId );
 
Takes care of updates of layer sets for a QgsMapCanvas from a layer tree.
 
Base class for nodes in a layer tree.
 
Base class for all map layer types.