Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[processing] add some missing icons for the data management tools menu
  • Loading branch information
nirvn committed Apr 30, 2018
1 parent 2402b35 commit 57b3c58
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 1 deletion.
2 changes: 2 additions & 0 deletions images/images.qrc
Expand Up @@ -87,9 +87,11 @@
<file>themes/default/algorithms/mAlgorithmIntersect.svg</file>
<file>themes/default/algorithms/mAlgorithmLineIntersections.svg</file>
<file>themes/default/algorithms/mAlgorithmMeanCoordinates.svg</file>
<file>themes/default/algorithms/mAlgorithmMergeLayers.svg</file>
<file>themes/default/algorithms/mAlgorithmMultiToSingle.svg</file>
<file>themes/default/algorithms/mAlgorithmSimplify.svg</file>
<file>themes/default/algorithms/mAlgorithmSingleToMulti.svg</file>
<file>themes/default/algorithms/mAlgorithmSplitLayer.svg</file>
<file>themes/default/algorithms/mAlgorithmSymmetricalDifference.svg</file>
<file>themes/default/algorithms/mAlgorithmUnion.svg</file>
<file>themes/default/cap_flat.svg</file>
Expand Down
1 change: 1 addition & 0 deletions images/themes/default/algorithms/mAlgorithmMergeLayers.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions images/themes/default/algorithms/mAlgorithmSplitLayer.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 8 additions & 1 deletion python/plugins/processing/algs/qgis/VectorSplit.py
Expand Up @@ -27,7 +27,8 @@

import os

from qgis.core import (QgsProcessingUtils,
from qgis.core import (QgsApplication,
QgsProcessingUtils,
QgsFeatureSink,
QgsProcessingParameterFeatureSource,
QgsProcessingParameterField,
Expand Down Expand Up @@ -71,6 +72,12 @@ def initAlgorithm(self, config=None):
self.tr('Output directory')))
self.addOutput(QgsProcessingOutputMultipleLayers(self.OUTPUT_LAYERS, self.tr('Output layers')))

def icon(self):
return QgsApplication.getThemeIcon("/algorithms/mAlgorithmSplitLayer.svg")

def svgIconPath(self):
return QgsApplication.iconPath("/algorithms/mAlgorithmSplitLayer.svg")

def name(self):
return 'splitvectorlayer'

Expand Down
2 changes: 2 additions & 0 deletions src/analysis/processing/qgsalgorithmmergevector.h
Expand Up @@ -35,6 +35,8 @@ class QgsMergeVectorAlgorithm : public QgsProcessingAlgorithm

QgsMergeVectorAlgorithm() = default;
void initAlgorithm( const QVariantMap &configuration = QVariantMap() ) override;
QIcon icon() const override { return QgsApplication::getThemeIcon( QStringLiteral( "/algorithms/mAlgorithmMergeLayers.svg" ) ); }
QString svgIconPath() const override { return QgsApplication::iconPath( QStringLiteral( "/algorithms/mAlgorithmMergeLayers.svg" ) ); }
QString name() const override;
QString displayName() const override;
QStringList tags() const override;
Expand Down

0 comments on commit 57b3c58

Please sign in to comment.