From a33376fe09c7d9908733f45cfef587b7dc382336 Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Mon, 16 Oct 2017 19:39:29 +1000 Subject: [PATCH] Drop version and count from algorithm item in tree view --- python/plugins/processing/algs/gdal/GdalAlgorithmProvider.py | 3 +-- python/plugins/processing/gui/ProcessingToolbox.py | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/python/plugins/processing/algs/gdal/GdalAlgorithmProvider.py b/python/plugins/processing/algs/gdal/GdalAlgorithmProvider.py index b8ab02b8070..ec39fc0bc89 100644 --- a/python/plugins/processing/algs/gdal/GdalAlgorithmProvider.py +++ b/python/plugins/processing/algs/gdal/GdalAlgorithmProvider.py @@ -122,8 +122,7 @@ class GdalAlgorithmProvider(QgsProcessingProvider): ProcessingConfig.setSettingValue('ACTIVATE_GDAL', active) def name(self): - version = GdalUtils.readableVersion() - return 'GDAL ({})'.format(version) + return 'GDAL' def id(self): return 'gdal' diff --git a/python/plugins/processing/gui/ProcessingToolbox.py b/python/plugins/processing/gui/ProcessingToolbox.py index d6ac6d33de4..d02dd170652 100644 --- a/python/plugins/processing/gui/ProcessingToolbox.py +++ b/python/plugins/processing/gui/ProcessingToolbox.py @@ -452,9 +452,7 @@ class ProcessingToolbox(BASE, WIDGET): label.setStyleSheet("QLabel {background-color: white; color: grey;}") label.linkActivated.connect(activateProvider) self.algorithmTree.setItemWidget(parent, 0, label) - else: - text += QCoreApplication.translate("TreeProviderItem", " [{0} geoalgorithms]").format(count) parent.setText(0, text) parent.setToolTip(0, parent.text(0))