mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-03 00:04:37 -05:00
[processing]removed debug print lines
This commit is contained in:
parent
a39315afad
commit
c2e30b3c03
@ -120,7 +120,6 @@ class GeoAlgorithm:
|
|||||||
"""
|
"""
|
||||||
name = self.commandLineName().split(':')[1].lower()
|
name = self.commandLineName().split(':')[1].lower()
|
||||||
filename = os.path.join(os.path.dirname(inspect.getfile(self.__class__)), 'help', name + '.rst')
|
filename = os.path.join(os.path.dirname(inspect.getfile(self.__class__)), 'help', name + '.rst')
|
||||||
print filename
|
|
||||||
try:
|
try:
|
||||||
html = getHtmlFromRstFile(filename)
|
html = getHtmlFromRstFile(filename)
|
||||||
return True, html
|
return True, html
|
||||||
|
|||||||
@ -43,7 +43,6 @@ class ModelerGraphicItem(QtGui.QGraphicsItem):
|
|||||||
super(ModelerGraphicItem, self).__init__(None, None)
|
super(ModelerGraphicItem, self).__init__(None, None)
|
||||||
self.model = model
|
self.model = model
|
||||||
self.element = element
|
self.element = element
|
||||||
print element.__class__
|
|
||||||
if isinstance(element, ModelerParameter):
|
if isinstance(element, ModelerParameter):
|
||||||
icon = QtGui.QIcon(os.path.dirname(__file__)
|
icon = QtGui.QIcon(os.path.dirname(__file__)
|
||||||
+ '/../images/input.png')
|
+ '/../images/input.png')
|
||||||
|
|||||||
@ -131,7 +131,7 @@ class ModelerParametersDialog(QDialog):
|
|||||||
if isinstance(output, (OutputRaster, OutputVector, OutputTable,
|
if isinstance(output, (OutputRaster, OutputVector, OutputTable,
|
||||||
OutputHTML, OutputFile, OutputDirectory)):
|
OutputHTML, OutputFile, OutputDirectory)):
|
||||||
label = QLabel(output.description + '<'
|
label = QLabel(output.description + '<'
|
||||||
+ output.__module__.split('.')[-1] + '>')
|
+ output.__class__.__name__ + '>')
|
||||||
item = QLineEdit()
|
item = QLineEdit()
|
||||||
if hasattr(item, 'setPlaceholderText'):
|
if hasattr(item, 'setPlaceholderText'):
|
||||||
item.setPlaceholderText(ModelerParametersDialog.ENTER_NAME)
|
item.setPlaceholderText(ModelerParametersDialog.ENTER_NAME)
|
||||||
@ -376,10 +376,7 @@ class ModelerParametersDialog(QDialog):
|
|||||||
def setComboBoxValue(self, combo, value, param):
|
def setComboBoxValue(self, combo, value, param):
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
value = value[0]
|
value = value[0]
|
||||||
print param.name
|
|
||||||
print value
|
|
||||||
items = [combo.itemData(i) for i in range(combo.count())]
|
items = [combo.itemData(i) for i in range(combo.count())]
|
||||||
print items
|
|
||||||
try:
|
try:
|
||||||
idx = items.index(value)
|
idx = items.index(value)
|
||||||
combo.setCurrentIndex(idx)
|
combo.setCurrentIndex(idx)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user