mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
[processing]minor code cleaning
Conflicts: python/plugins/processing/core/parameters.py
This commit is contained in:
parent
e6f9499716
commit
ae0e9c8442
@ -37,7 +37,7 @@ from qgis.core import QgsMapLayerRegistry, QgsMapLayer
|
||||
|
||||
from qgis.PyQt import uic
|
||||
from qgis.PyQt.QtCore import QCoreApplication, QVariant
|
||||
from qgis.PyQt.QtWidgets import (QWidget, QLayout, QVBoxLayout, QHBoxLayout, QToolButton,
|
||||
from qgis.PyQt.QtWidgets import (QWidget, QLayout, QVBoxLayout, QHBoxLayout, QToolButton,
|
||||
QLabel, QCheckBox, QComboBox, QLineEdit, QPlainTextEdit)
|
||||
from qgis.PyQt.QtGui import QIcon
|
||||
|
||||
@ -97,11 +97,8 @@ class ParametersPanel(BASE, WIDGET):
|
||||
desc += self.tr(' (xmin, xmax, ymin, ymax)')
|
||||
if isinstance(param, ParameterPoint):
|
||||
desc += self.tr(' (x, y)')
|
||||
try:
|
||||
if param.optional:
|
||||
desc += self.tr(' [optional]')
|
||||
except:
|
||||
pass
|
||||
if param.optional:
|
||||
desc += self.tr(' [optional]')
|
||||
|
||||
wrapper = self.getWidgetWrapperFromParameter(param)
|
||||
self.wrappers[param.name] = wrapper
|
||||
|
Loading…
x
Reference in New Issue
Block a user