52 void setCheckedLayers(
const QList<QgsMapLayer *> layers );
58 QgsMapLayer *mapLayer(
const QModelIndex &idx )
const;
69 void setFilters( Qgis::LayerFilters filters );
71 virtual int columnCount(
const QModelIndex &parent )
const override;
72 virtual Qt::ItemFlags flags(
const QModelIndex &idx )
const override;
73 QModelIndex index(
int row,
int column,
const QModelIndex &parent = QModelIndex() )
const override;
74 QModelIndex parent(
const QModelIndex &child )
const override;
75 QModelIndex sibling(
int row,
int column,
const QModelIndex &idx )
const override;
76 virtual QVariant data(
const QModelIndex &index,
int role )
const override;
77 virtual bool setData(
const QModelIndex &index,
const QVariant &value,
int role )
override;
81 virtual void setFilterText(
const QString &filterText = QString() );
85 virtual bool isLayerChecked(
QgsMapLayer *layer )
const;
88 virtual void setLayerChecked(
QgsMapLayer *layer,
bool checked );
90 bool filterAcceptsRow(
int sourceRow,
const QModelIndex &sourceParent )
const override;
98 virtual bool layerShown(
QgsMapLayer *layer )
const;
103 void setLayerCheckedPrivate(
QgsMapLayer *layer,
bool checked );
106 QList<QgsMapLayer *> mCheckedLayers;