Skip to content

Commit

Permalink
Merge pull request #6433 from alexbruy/hide-modeler-tools
Browse files Browse the repository at this point in the history
[processing] hide 'Rename layer' and 'Load layer' algs from toolbox
  • Loading branch information
alexbruy committed Feb 23, 2018
2 parents 67a578f + e59c264 commit 35cc4c9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/analysis/processing/qgsalgorithmloadlayer.cpp
Expand Up @@ -24,6 +24,11 @@ QString QgsLoadLayerAlgorithm::name() const
return QStringLiteral( "loadlayer" );
}

QgsProcessingAlgorithm::Flags QgsLoadLayerAlgorithm::flags() const
{
return FlagHideFromToolbox;
}

QString QgsLoadLayerAlgorithm::displayName() const
{
return QObject::tr( "Load layer into project" );
Expand Down
1 change: 1 addition & 0 deletions src/analysis/processing/qgsalgorithmloadlayer.h
Expand Up @@ -33,6 +33,7 @@ class QgsLoadLayerAlgorithm : public QgsProcessingAlgorithm
public:
QgsLoadLayerAlgorithm() = default;
void initAlgorithm( const QVariantMap &configuration = QVariantMap() ) override;
Flags flags() const override;
QString name() const override;
QString displayName() const override;
QStringList tags() const override;
Expand Down
5 changes: 5 additions & 0 deletions src/analysis/processing/qgsalgorithmrenamelayer.cpp
Expand Up @@ -24,6 +24,11 @@ QString QgsRenameLayerAlgorithm::name() const
return QStringLiteral( "renamelayer" );
}

QgsProcessingAlgorithm::Flags QgsRenameLayerAlgorithm::flags() const
{
return FlagHideFromToolbox;
}

QString QgsRenameLayerAlgorithm::displayName() const
{
return QObject::tr( "Rename layer" );
Expand Down
1 change: 1 addition & 0 deletions src/analysis/processing/qgsalgorithmrenamelayer.h
Expand Up @@ -33,6 +33,7 @@ class QgsRenameLayerAlgorithm : public QgsProcessingAlgorithm
public:
QgsRenameLayerAlgorithm() = default;
void initAlgorithm( const QVariantMap &configuration = QVariantMap() ) override;
Flags flags() const override;
QString name() const override;
QString displayName() const override;
QStringList tags() const override;
Expand Down

0 comments on commit 35cc4c9

Please sign in to comment.