Drop version and count from algorithm item in tree view

This commit is contained in:
Nyall Dawson 2017-10-16 19:39:29 +10:00
parent 925ec6098c
commit a33376fe09
2 changed files with 1 additions and 4 deletions

View File

@ -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'

View File

@ -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))