37 Q_PROPERTY(
bool allowEmptyLayer READ allowEmptyLayer WRITE setAllowEmptyLayer )
38 Q_PROPERTY(
bool showCrs READ showCrs WRITE setShowCrs )
39 Q_PROPERTY( QStringList excludedProviders READ excludedProviders WRITE setExcludedProviders )
56 void setFilters(
Qgis::LayerFilters filters ) { mProxyModel->
setFilters( filters ); }
78 void setExceptedLayerList(
const QList<QgsMapLayer *> &layerList ) { mProxyModel->setExceptedLayerList( layerList );}
91 void setExcludedProviders(
const QStringList &providers );
97 QStringList excludedProviders()
const;
116 void setAllowEmptyLayer(
bool allowEmpty,
const QString &text = QString(),
const QIcon &icon = QIcon() );
122 bool allowEmptyLayer()
const;
128 void setShowCrs(
bool showCrs );
134 bool showCrs()
const;
142 void setAdditionalItems(
const QStringList &items );
148 QStringList additionalItems()
const;
159 void setAdditionalLayers(
const QList<QgsMapLayer *> &layers );
167 QList< QgsMapLayer * > additionalLayers()
const;
195 void dragEnterEvent( QDragEnterEvent *event )
override;
196 void dragLeaveEvent( QDragLeaveEvent *event )
override;
197 void dropEvent( QDropEvent *event )
override;
198 void paintEvent( QPaintEvent *e )
override;
201 void indexChanged(
int i );
206 bool mDragActive =
false;
207 bool mHighlight =
false;
213 QgsMapLayer *compatibleMapLayerFromMimeData(
const QMimeData *data )
const;
215 friend class QgsProcessingMapLayerComboBox;