A sort/filter proxy model for providers and algorithms shown within the Processing toolbox, which automatically sorts the toolbox in a logical fashion and supports filtering the results.
More...
#include <qgsprocessingtoolboxmodel.h>
A sort/filter proxy model for providers and algorithms shown within the Processing toolbox, which automatically sorts the toolbox in a logical fashion and supports filtering the results.
- Since
- QGIS 3.4
Definition at line 417 of file qgsprocessingtoolboxmodel.h.
◆ Filter
Available filter flags for filtering the model.
Enumerator |
---|
FilterToolbox | Filters out any algorithms and content which should not be shown in the toolbox.
|
FilterModeler | Filters out any algorithms and content which should not be shown in the modeler.
|
FilterInPlace | Only show algorithms which support in-place edits.
|
FilterShowKnownIssues | Show algorithms with known issues (hidden by default)
|
Definition at line 424 of file qgsprocessingtoolboxmodel.h.
◆ QgsProcessingToolboxProxyModel()
QgsProcessingToolboxProxyModel::QgsProcessingToolboxProxyModel |
( |
QObject * |
parent = nullptr , |
|
|
QgsProcessingRegistry * |
registry = nullptr , |
|
|
QgsProcessingRecentAlgorithmLog * |
recentLog = nullptr |
|
) |
| |
|
explicit |
Constructor for QgsProcessingToolboxProxyModel, with the given parent object.
If registry is specified then the model will show providers and algorithms from the given registry. If no registry is specified, then the processing registry attached to QgsApplication::processingRegistry() will be used by the model.
If recentLog is specified then it will be used to create a "Recently used" top level group containing recently used algorithms.
Definition at line 672 of file qgsprocessingtoolboxmodel.cpp.
◆ data()
QVariant QgsProcessingToolboxProxyModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
override |
◆ filterAcceptsRow()
bool QgsProcessingToolboxProxyModel::filterAcceptsRow |
( |
int |
sourceRow, |
|
|
const QModelIndex & |
sourceParent |
|
) |
| const |
|
override |
◆ filters()
Filters QgsProcessingToolboxProxyModel::filters |
( |
| ) |
const |
|
inline |
◆ filterString()
QString QgsProcessingToolboxProxyModel::filterString |
( |
| ) |
const |
|
inline |
◆ lessThan()
bool QgsProcessingToolboxProxyModel::lessThan |
( |
const QModelIndex & |
left, |
|
|
const QModelIndex & |
right |
|
) |
| const |
|
override |
◆ setFilters()
void QgsProcessingToolboxProxyModel::setFilters |
( |
QgsProcessingToolboxProxyModel::Filters |
filters | ) |
|
◆ setFilterString()
void QgsProcessingToolboxProxyModel::setFilterString |
( |
const QString & |
filter | ) |
|
Sets a filter string, such that only algorithms matching the specified string will be shown.
Matches are performed using a variety of tests, including checking against the algorithm name, short description, tags, etc.
- See also
- filterString()
Definition at line 709 of file qgsprocessingtoolboxmodel.cpp.
◆ setInPlaceLayer()
void QgsProcessingToolboxProxyModel::setInPlaceLayer |
( |
QgsVectorLayer * |
layer | ) |
|
◆ toolboxModel() [1/2]
◆ toolboxModel() [2/2]
The documentation for this class was generated from the following files: