|
| QgsMapLayerProxyModel (QObject *parent=nullptr) |
| QgsMapLayerProxModel creates a proxy model with a QgsMapLayerModel as source model. More...
|
|
bool | acceptsLayer (QgsMapLayer *layer) const |
| Returns true if the proxy model accepts the specified map layer. More...
|
|
QStringList | exceptedLayerIds () const |
| Returns the blocklist of layer IDs which are excluded from the model. More...
|
|
QList< QgsMapLayer * > | exceptedLayerList () |
| Returns the blocklist of layers which are excluded from the model. More...
|
|
QStringList | excludedProviders () const |
| Returns the blocklist of data providers which are excluded from the model. More...
|
|
bool | filterAcceptsRow (int source_row, const QModelIndex &source_parent) const override |
|
const Filters & | filters () const |
| Returns the filter flags which affect how layers are filtered within the model. More...
|
|
QString | filterString () const |
| Returns the current filter string, if set. More...
|
|
QList< QgsMapLayer * > | layerAllowlist () |
| Returns the list of layers which are excluded from the model. More...
|
|
Q_DECL_DEPRECATED QList< QgsMapLayer * > | layerWhitelist () |
| Returns the list of layers which are excluded from the model. More...
|
|
bool | lessThan (const QModelIndex &left, const QModelIndex &right) const override |
|
void | setExceptedLayerIds (const QStringList &ids) |
| Sets a blocklist of layers (by layer ID) to exclude from the model. More...
|
|
void | setExceptedLayerList (const QList< QgsMapLayer * > &exceptList) |
| Sets a blocklist of layers to exclude from the model. More...
|
|
void | setExcludedProviders (const QStringList &providers) |
| Sets a blocklist of data providers which should be excluded from the model. More...
|
|
QgsMapLayerProxyModel * | setFilters (QgsMapLayerProxyModel::Filters filters) |
| Sets filter flags which affect how layers are filtered within the model. More...
|
|
void | setLayerAllowlist (const QList< QgsMapLayer * > &layers) |
| Sets an allowlist of layers to include within the model. More...
|
|
Q_DECL_DEPRECATED void | setLayerWhitelist (const QList< QgsMapLayer * > &layers) |
| Sets an allowlist of layers to include within the model. More...
|
|
void | setProject (QgsProject *project) |
| Sets the project from which map layers are shown. More...
|
|
QgsMapLayerModel * | sourceLayerModel () const |
| layerModel returns the QgsMapLayerModel used in this QSortFilterProxyModel More...
|
|