Skip to content

Commit e40a164

Browse files
committed
[processing] more HiDPI fixes (refs #14474)
1 parent 05bbe18 commit e40a164

28 files changed

+223
-27
lines changed

python/plugins/processing/algs/gdal/GdalOgrAlgorithmProvider.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def getName(self):
108108
return 'gdalogr'
109109

110110
def getIcon(self):
111-
return QIcon(os.path.join(pluginPath, 'images', 'gdal.png'))
111+
return QIcon(os.path.join(pluginPath, 'images', 'gdal.svg'))
112112

113113
def _loadAlgorithms(self):
114114
self.algs = self.preloadedAlgs

python/plugins/processing/algs/grass/GrassAlgorithmProvider.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def getName(self):
9898
return 'grass'
9999

100100
def getIcon(self):
101-
return QIcon(os.path.join(pluginPath, 'images', 'grass.png'))
101+
return QIcon(os.path.join(pluginPath, 'images', 'grass.svg'))
102102

103103
def getSupportedOutputVectorLayerExtensions(self):
104104
return ['shp']

python/plugins/processing/algs/grass7/Grass7AlgorithmProvider.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def getName(self):
102102
return 'grass70'
103103

104104
def getIcon(self):
105-
return QIcon(os.path.join(pluginPath, 'images', 'grass.png'))
105+
return QIcon(os.path.join(pluginPath, 'images', 'grass.svg'))
106106

107107
def getSupportedOutputVectorLayerExtensions(self):
108108
return ['shp']

python/plugins/processing/algs/r/RAlgorithmProvider.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def unload(self):
8686
ProcessingConfig.removeSetting(RUtils.R_USE64)
8787

8888
def getIcon(self):
89-
return QIcon(os.path.join(pluginPath, 'images', 'r.png'))
89+
return QIcon(os.path.join(pluginPath, 'images', 'r.svg'))
9090

9191
def getDescription(self):
9292
return 'R scripts'

python/plugins/processing/algs/taudem/TauDEMAlgorithm.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def getCopy(self):
5959
return newone
6060

6161
def getIcon(self):
62-
return QIcon(os.path.dirname(__file__) + '/../../images/taudem.png')
62+
return QIcon(os.path.dirname(__file__) + '/../../images/taudem.svg')
6363

6464
def defineCharacteristicsFromFile(self):
6565
lines = open(self.descriptionFile)

python/plugins/processing/algs/taudem/TauDEMAlgorithmProvider.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def getName(self):
7171
return 'taudem'
7272

7373
def getIcon(self):
74-
return QIcon(os.path.dirname(__file__) + '/../../images/taudem.png')
74+
return QIcon(os.path.dirname(__file__) + '/../../images/taudem.svg')
7575

7676
def initializeSettings(self):
7777
AlgorithmProvider.initializeSettings(self)

python/plugins/processing/algs/taudem/dinfdistdown.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class DinfDistDown(GeoAlgorithm):
6565
}
6666

6767
def getIcon(self):
68-
return QIcon(os.path.dirname(__file__) + '/../../images/taudem.png')
68+
return QIcon(os.path.dirname(__file__) + '/../../images/taudem.svg')
6969

7070
def defineCharacteristics(self):
7171
self.name, self.i18n_name = self.trAlgorithm('D-Infinity Distance Down')

python/plugins/processing/algs/taudem/dinfdistdown_multi.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class DinfDistDownMulti(GeoAlgorithm):
6666
}
6767

6868
def getIcon(self):
69-
return QIcon(os.path.dirname(__file__) + '/../../images/taudem.png')
69+
return QIcon(os.path.dirname(__file__) + '/../../images/taudem.svg')
7070

7171
def defineCharacteristics(self):
7272
self.name, self.i18n_name = self.trAlgorithm('D-Infinity Distance Down (multifile)')

python/plugins/processing/algs/taudem/dinfdistup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class DinfDistUp(GeoAlgorithm):
6666
}
6767

6868
def getIcon(self):
69-
return QIcon(os.path.dirname(__file__) + '/../../images/taudem.png')
69+
return QIcon(os.path.dirname(__file__) + '/../../images/taudem.svg')
7070

7171
def defineCharacteristics(self):
7272
self.name, self.i18n_name = self.trAlgorithm('D-Infinity Distance Up')

python/plugins/processing/algs/taudem/dinfdistup_multi.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class DinfDistUpMulti(GeoAlgorithm):
6767
}
6868

6969
def getIcon(self):
70-
return QIcon(os.path.dirname(__file__) + '/../../images/taudem.png')
70+
return QIcon(os.path.dirname(__file__) + '/../../images/taudem.svg')
7171

7272
def defineCharacteristics(self):
7373
self.name, self.i18n_name = self.trAlgorithm('D-Infinity Distance Up (multifile)')

python/plugins/processing/algs/taudem/dinftranslimaccum.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class DinfTransLimAccum(GeoAlgorithm):
5656
OUT_CONCENTR_GRID = 'OUT_CONCENTR_GRID'
5757

5858
def getIcon(self):
59-
return QIcon(os.path.dirname(__file__) + '/../../images/taudem.png')
59+
return QIcon(os.path.dirname(__file__) + '/../../images/taudem.svg')
6060

6161
def defineCharacteristics(self):
6262
self.name, self.i18n_name = self.trAlgorithm('D-Infinity Transport Limited Accumulation')

python/plugins/processing/algs/taudem/dinftranslimaccum2.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class DinfTransLimAccum2(GeoAlgorithm):
5656
OUT_CONCENTR_GRID = 'OUT_CONCENTR_GRID'
5757

5858
def getIcon(self):
59-
return QIcon(os.path.dirname(__file__) + '/../../images/taudem.png')
59+
return QIcon(os.path.dirname(__file__) + '/../../images/taudem.svg')
6060

6161
def defineCharacteristics(self):
6262
self.name, self.i18n_name = self.trAlgorithm('D-Infinity Transport Limited Accumulation - 2')

python/plugins/processing/algs/taudem/dinftranslimaccum2_multi.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class DinfTransLimAccum2Multi(GeoAlgorithm):
5656
OUT_CONCENTR_GRID = 'OUT_CONCENTR_GRID'
5757

5858
def getIcon(self):
59-
return QIcon(os.path.dirname(__file__) + '/../../images/taudem.png')
59+
return QIcon(os.path.dirname(__file__) + '/../../images/taudem.svg')
6060

6161
def defineCharacteristics(self):
6262
self.name, self.i18n_name = self.trAlgorithm('D-Infinity Transport Limited Accumulation - 2 (multifile)')

python/plugins/processing/algs/taudem/dinftranslimaccum_multi.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class DinfTransLimAccumMulti(GeoAlgorithm):
5656
OUT_CONCENTR_GRID = 'OUT_CONCENTR_GRID'
5757

5858
def getIcon(self):
59-
return QIcon(os.path.dirname(__file__) + '/../../images/taudem.png')
59+
return QIcon(os.path.dirname(__file__) + '/../../images/taudem.svg')
6060

6161
def defineCharacteristics(self):
6262
self.name, self.i18n_name = self.trAlgorithm('D-Infinity Transport Limited Accumulation (multifile)')

python/plugins/processing/algs/taudem/dropanalysis.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class DropAnalysis(GeoAlgorithm):
6060
STEPS = ['Logarithmic', 'Linear']
6161

6262
def getIcon(self):
63-
return QIcon(os.path.dirname(__file__) + '/../../images/taudem.png')
63+
return QIcon(os.path.dirname(__file__) + '/../../images/taudem.svg')
6464

6565
def defineCharacteristics(self):
6666
self.name, self.i18n_name = self.trAlgorithm('Stream Drop Analysis')

python/plugins/processing/algs/taudem/dropanalysis_multi.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class DropAnalysisMulti(GeoAlgorithm):
6060
STEPS = ['Logarithmic', 'Linear']
6161

6262
def getIcon(self):
63-
return QIcon(os.path.dirname(__file__) + '/../../images/taudem.png')
63+
return QIcon(os.path.dirname(__file__) + '/../../images/taudem.svg')
6464

6565
def defineCharacteristics(self):
6666
self.name, self.i18n_name = self.trAlgorithm('Stream Drop Analysis (multifile)')

python/plugins/processing/algs/taudem/gridnet.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class GridNet(GeoAlgorithm):
5454
STRAHLER_GRID = 'STRAHLER_GRID'
5555

5656
def getIcon(self):
57-
return QIcon(os.path.dirname(__file__) + '/../../images/taudem.png')
57+
return QIcon(os.path.dirname(__file__) + '/../../images/taudem.svg')
5858

5959
def defineCharacteristics(self):
6060
self.name, self.i18n_name = self.trAlgorithm('Grid Network')

python/plugins/processing/algs/taudem/gridnet_multi.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class GridNetMulti(GeoAlgorithm):
5454
STRAHLER_GRID = 'STRAHLER_GRID'
5555

5656
def getIcon(self):
57-
return QIcon(os.path.dirname(__file__) + '/../../images/taudem.png')
57+
return QIcon(os.path.dirname(__file__) + '/../../images/taudem.svg')
5858

5959
def defineCharacteristics(self):
6060
self.name, self.i18n_name = self.trAlgorithm('Grid Network (multifile)')

python/plugins/processing/algs/taudem/lengtharea.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class LengthArea(GeoAlgorithm):
5151
STREAM_SOURCE_GRID = 'STREAM_SOURCE_GRID'
5252

5353
def getIcon(self):
54-
return QIcon(os.path.dirname(__file__) + '/../../images/taudem.png')
54+
return QIcon(os.path.dirname(__file__) + '/../../images/taudem.svg')
5555

5656
def defineCharacteristics(self):
5757
self.name, self.i18n_name = self.trAlgorithm('Length Area Stream Source')

python/plugins/processing/algs/taudem/lengtharea_multi.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class LengthAreaMulti(GeoAlgorithm):
5151
STREAM_SOURCE_GRID = 'STREAM_SOURCE_GRID'
5252

5353
def getIcon(self):
54-
return QIcon(os.path.dirname(__file__) + '/../../images/taudem.png')
54+
return QIcon(os.path.dirname(__file__) + '/../../images/taudem.svg')
5555

5656
def defineCharacteristics(self):
5757
self.name, self.i18n_name = self.trAlgorithm('Length Area Stream Source (multifile)')

python/plugins/processing/algs/taudem/peukerdouglas.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class PeukerDouglas(GeoAlgorithm):
4848
STREAM_SOURCE_GRID = 'STREAM_SOURCE_GRID'
4949

5050
def getIcon(self):
51-
return QIcon(os.path.dirname(__file__) + '/../../images/taudem.png')
51+
return QIcon(os.path.dirname(__file__) + '/../../images/taudem.svg')
5252

5353
def defineCharacteristics(self):
5454
self.name, self.i18n_name = self.trAlgorithm('Peuker Douglas')

python/plugins/processing/algs/taudem/peukerdouglas_multi.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class PeukerDouglasMulti(GeoAlgorithm):
5050
STREAM_SOURCE_GRID = 'STREAM_SOURCE_GRID'
5151

5252
def getIcon(self):
53-
return QIcon(os.path.dirname(__file__) + '/../../images/taudem.png')
53+
return QIcon(os.path.dirname(__file__) + '/../../images/taudem.svg')
5454

5555
def defineCharacteristics(self):
5656
self.name, self.i18n_name = self.trAlgorithm('Peuker Douglas (multifile)')

python/plugins/processing/algs/taudem/slopearea.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class SlopeArea(GeoAlgorithm):
5151
SLOPE_AREA_GRID = 'SLOPE_AREA_GRID'
5252

5353
def getIcon(self):
54-
return QIcon(os.path.dirname(__file__) + '/../../images/taudem.png')
54+
return QIcon(os.path.dirname(__file__) + '/../../images/taudem.svg')
5555

5656
def defineCharacteristics(self):
5757
self.name, self.i18n_name = self.trAlgorithm('Slope Area Combination')

python/plugins/processing/algs/taudem/slopearea_multi.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class SlopeAreaMulti(GeoAlgorithm):
5151
SLOPE_AREA_GRID = 'SLOPE_AREA_GRID'
5252

5353
def getIcon(self):
54-
return QIcon(os.path.dirname(__file__) + '/../../images/taudem.png')
54+
return QIcon(os.path.dirname(__file__) + '/../../images/taudem.svg')
5555

5656
def defineCharacteristics(self):
5757
self.name, self.i18n_name = self.trAlgorithm('Slope Area Combination (multifile)')

python/plugins/processing/gui/CreateNewScriptAction.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def getIcon(self):
4949
if self.scriptType == self.SCRIPT_PYTHON:
5050
return QIcon(os.path.join(pluginPath, 'images', 'script.png'))
5151
elif self.scriptType == self.SCRIPT_R:
52-
return QIcon(os.path.join(pluginPath, 'images', 'r.png'))
52+
return QIcon(os.path.join(pluginPath, 'images', 'r.svg'))
5353

5454
def execute(self):
5555
dlg = None

python/plugins/processing/gui/GetScriptsAndModels.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def __init__(self):
7474
self.group = self.tr('Tools', 'GetRScriptsAction')
7575

7676
def getIcon(self):
77-
return QIcon(os.path.join(pluginPath, 'images', 'r.png'))
77+
return QIcon(os.path.join(pluginPath, 'images', 'r.svg'))
7878

7979
def execute(self):
8080
dlg = GetScriptsAndModelsDialog(GetScriptsAndModelsDialog.RSCRIPTS)
@@ -137,7 +137,7 @@ def __init__(self, resourceType):
137137
else:
138138
self.folder = RUtils.RScriptsFolder()
139139
self.urlBase = 'https://raw.githubusercontent.com/qgis/QGIS-Processing/master/rscripts/'
140-
self.icon = QIcon(os.path.join(pluginPath, 'images', 'r.png'))
140+
self.icon = QIcon(os.path.join(pluginPath, 'images', 'r.svg'))
141141

142142
self.lastSelectedItem = None
143143
self.updateToolbox = False
-1.01 KB
Binary file not shown.

0 commit comments

Comments
 (0)