69 QgsDataItem *dataItem(
const QModelIndex &index )
const;
76 void setFilterSyntax( FilterSyntax syntax );
83 FilterSyntax filterSyntax()
const;
90 void setFilterString(
const QString &filter );
97 QString filterString()
const;
104 void setFilterCaseSensitivity( Qt::CaseSensitivity sensitivity );
111 Qt::CaseSensitivity caseSensitivity()
const;
127 void setFilterByLayerType(
bool enabled );
163 void setHiddenDataItemProviderKeyFilter(
const QStringList &hiddenItemsFilter );
181 void setShownDataItemProviderKeyFilter(
const QStringList &shownItemsFilter );
189 bool showLayers()
const;
197 void setShowLayers(
bool showLayers );
202 bool filterAcceptsRow(
int sourceRow,
const QModelIndex &sourceParent )
const override;
210 QStringList mHiddenDataItemsKeys;
211 QStringList mShownDataItemsKeys;
213 QVector<QRegularExpression> mREList;
215 Qt::CaseSensitivity mCaseSensitivity = Qt::CaseInsensitive;
217 bool mFilterByLayerType =
false;
218 bool mShowLayers =
true;
225 bool filterAcceptsString(
const QString &value )
const;
228 bool filterAcceptsAncestor(
const QModelIndex &sourceIndex )
const;
231 bool filterAcceptsDescendant(
const QModelIndex &sourceIndex )
const;
234 bool filterAcceptsItem(
const QModelIndex &sourceIndex )
const;
237 bool filterAcceptsProviderKey(
const QModelIndex &sourceIndex )
const;
240 bool filterRootAcceptsProviderKey(
const QModelIndex &sourceIndex )
const;
246 bool hasChildren(
const QModelIndex &parent = QModelIndex() )
const override;