Skip to content

Commit 3665e46

Browse files
committedJul 8, 2017
Use a filter line edit for outputs
1 parent 0836c60 commit 3665e46

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎python/plugins/processing/modeler/ModelerParametersDialog.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@
4444
QgsProcessingOutputDefinition)
4545

4646
from qgis.gui import (QgsMessageBar,
47-
QgsScrollArea)
47+
QgsScrollArea,
48+
QgsFilterLineEdit)
4849

4950
from processing.gui.wrappers import WidgetWrapperFactory
5051
from processing.gui.wrappers import InvalidParameterValue
@@ -153,7 +154,7 @@ def setupUi(self):
153154
if isinstance(dest, (QgsProcessingParameterRasterDestination, QgsProcessingParameterFeatureSink,
154155
QgsProcessingParameterFileDestination, QgsProcessingParameterFolderDestination)):
155156
label = QLabel(dest.description())
156-
item = QLineEdit()
157+
item = QgsFilterLineEdit()
157158
if hasattr(item, 'setPlaceholderText'):
158159
item.setPlaceholderText(ModelerParametersDialog.ENTER_NAME)
159160
self.verticalLayout.addWidget(label)

0 commit comments

Comments
 (0)
Please sign in to comment.