37 Q_PROPERTY( Qgis::LayerFilters filters READ filters WRITE setFilters )
38 Q_PROPERTY(
bool allowEmptyLayer READ allowEmptyLayer WRITE setAllowEmptyLayer )
39 Q_PROPERTY(
bool showCrs READ showCrs WRITE setShowCrs )
40 Q_PROPERTY( QStringList excludedProviders READ excludedProviders WRITE setExcludedProviders )
51 void setFilters(
Qgis::LayerFilters filters ) { mProxyModel->
setFilters( filters ); }
62 Qgis::LayerFilters
filters()
const {
return mProxyModel->filters(); }
65 void setExceptedLayerList(
const QList<QgsMapLayer *> &layerList ) { mProxyModel->setExceptedLayerList( layerList );}
75 void setExcludedProviders(
const QStringList &providers );
82 QStringList excludedProviders()
const;
102 void setAllowEmptyLayer(
bool allowEmpty,
const QString &text = QString(),
const QIcon &icon = QIcon() );
109 bool allowEmptyLayer()
const;
116 void setShowCrs(
bool showCrs );
123 bool showCrs()
const;
132 void setAdditionalItems(
const QStringList &items );
139 QStringList additionalItems()
const;
150 void setAdditionalLayers(
const QList<QgsMapLayer *> &layers );
158 QList< QgsMapLayer * > additionalLayers()
const;
184 void dragEnterEvent( QDragEnterEvent *event )
override;
185 void dragLeaveEvent( QDragLeaveEvent *event )
override;
186 void dropEvent( QDropEvent *event )
override;
187 void paintEvent( QPaintEvent *e )
override;
190 void indexChanged(
int i );
195 bool mDragActive =
false;
196 bool mHighlight =
false;
202 QgsMapLayer *compatibleMapLayerFromMimeData(
const QMimeData *data )
const;
204 friend class QgsProcessingMapLayerComboBox;