A model for providers and algorithms shown within the Processing toolbox.
More...
#include <qgsprocessingtoolboxmodel.h>
A model for providers and algorithms shown within the Processing toolbox.
See QgsProcessingToolboxProxyModel for a sorted, filterable version of this model.
- Since
- QGIS 3.4
Definition at line 274 of file qgsprocessingtoolboxmodel.h.
◆ Roles
Custom roles used by the model.
Enumerator |
---|
RoleNodeType | Corresponds to the node's type.
|
RoleAlgorithmFlags | Returns the node's algorithm flags, for algorithm nodes.
|
RoleAlgorithmId | Algorithm ID, for algorithm nodes.
|
RoleAlgorithmName | Untranslated algorithm name, for algorithm nodes.
|
RoleAlgorithmShortDescription | Short algorithm description, for algorithm nodes.
|
RoleAlgorithmTags | List of algorithm tags, for algorithm nodes.
|
RoleProviderFlags | Returns the node's provider flags.
|
Definition at line 281 of file qgsprocessingtoolboxmodel.h.
◆ QgsProcessingToolboxModel()
QgsProcessingToolboxModel::QgsProcessingToolboxModel |
( |
QObject * |
parent = nullptr , |
|
|
QgsProcessingRegistry * |
registry = nullptr , |
|
|
QgsProcessingRecentAlgorithmLog * |
recentLog = nullptr |
|
) |
| |
Constructor for QgsProcessingToolboxModel, 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 118 of file qgsprocessingtoolboxmodel.cpp.
◆ algorithmForIndex()
const QgsProcessingAlgorithm * QgsProcessingToolboxModel::algorithmForIndex |
( |
const QModelIndex & |
index | ) |
const |
◆ columnCount()
int QgsProcessingToolboxModel::columnCount |
( |
const QModelIndex & |
= QModelIndex() | ) |
const |
|
override |
◆ data()
QVariant QgsProcessingToolboxModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
override |
◆ flags()
Qt::ItemFlags QgsProcessingToolboxModel::flags |
( |
const QModelIndex & |
index | ) |
const |
|
override |
◆ index()
QModelIndex QgsProcessingToolboxModel::index |
( |
int |
row, |
|
|
int |
column, |
|
|
const QModelIndex & |
parent = QModelIndex() |
|
) |
| const |
|
override |
◆ index2node()
QgsProcessingToolboxModelNode * QgsProcessingToolboxModel::index2node |
( |
const QModelIndex & |
index | ) |
const |
◆ indexForProvider()
QModelIndex QgsProcessingToolboxModel::indexForProvider |
( |
const QString & |
providerId | ) |
const |
◆ indexOfParentTreeNode()
QModelIndex QgsProcessingToolboxModel::indexOfParentTreeNode |
( |
QgsProcessingToolboxModelNode * |
parentNode | ) |
const |
◆ isAlgorithm()
bool QgsProcessingToolboxModel::isAlgorithm |
( |
const QModelIndex & |
index | ) |
const |
◆ mimeData()
QMimeData * QgsProcessingToolboxModel::mimeData |
( |
const QModelIndexList & |
indexes | ) |
const |
|
override |
◆ node2index()
QModelIndex QgsProcessingToolboxModel::node2index |
( |
QgsProcessingToolboxModelNode * |
node | ) |
const |
◆ parent()
QModelIndex QgsProcessingToolboxModel::parent |
( |
const QModelIndex & |
index | ) |
const |
|
override |
◆ providerForIndex()
◆ providerIdForIndex()
QString QgsProcessingToolboxModel::providerIdForIndex |
( |
const QModelIndex & |
index | ) |
const |
◆ recentAlgorithmAdded
void QgsProcessingToolboxModel::recentAlgorithmAdded |
( |
| ) |
|
|
signal |
Emitted whenever recent algorithms are added to the model.
◆ rowCount()
int QgsProcessingToolboxModel::rowCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
override |
The documentation for this class was generated from the following files: