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 )
55 void setFilters(
Qgis::LayerFilters filters ) { mProxyModel->
setFilters( filters ); }
77 void setExceptedLayerList(
const QList<QgsMapLayer *> &layerList ) { mProxyModel->setExceptedLayerList( layerList ); }
90 void setExcludedProviders(
const QStringList &providers );
96 QStringList excludedProviders()
const;
115 void setAllowEmptyLayer(
bool allowEmpty,
const QString &text = QString(),
const QIcon &icon = QIcon() );
121 bool allowEmptyLayer()
const;
127 void setShowCrs(
bool showCrs );
133 bool showCrs()
const;
141 void setAdditionalItems(
const QStringList &items );
147 QStringList additionalItems()
const;
158 void setAdditionalLayers(
const QList<QgsMapLayer *> &layers );
166 QList<QgsMapLayer *> additionalLayers()
const;
193 void dragEnterEvent( QDragEnterEvent *event )
override;
194 void dragLeaveEvent( QDragLeaveEvent *event )
override;
195 void dropEvent( QDropEvent *event )
override;
196 void paintEvent( QPaintEvent *e )
override;
199 void indexChanged(
int i );
204 bool mDragActive =
false;
205 bool mHighlight =
false;
211 QgsMapLayer *compatibleMapLayerFromMimeData(
const QMimeData *data )
const;
213 friend class QgsProcessingMapLayerComboBox;