Skip to content
Permalink
Browse files

[processing] hide 'Rename layer' and 'Load layer' algs from toolbox

  • Loading branch information
alexbruy committed Feb 23, 2018
1 parent 673421b commit e59c264bfd220b8a7dea020853b9bcf18f29ea75
@@ -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" );
@@ -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;
@@ -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" );
@@ -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;

0 comments on commit e59c264

Please sign in to comment.
You can’t perform that action at this time.