Skip to content

Commit

Permalink
Use a filter line edit for outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jul 8, 2017
1 parent 0836c60 commit 3665e46
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/plugins/processing/modeler/ModelerParametersDialog.py
Expand Up @@ -44,7 +44,8 @@
QgsProcessingOutputDefinition)

from qgis.gui import (QgsMessageBar,
QgsScrollArea)
QgsScrollArea,
QgsFilterLineEdit)

from processing.gui.wrappers import WidgetWrapperFactory
from processing.gui.wrappers import InvalidParameterValue
Expand Down Expand Up @@ -153,7 +154,7 @@ def setupUi(self):
if isinstance(dest, (QgsProcessingParameterRasterDestination, QgsProcessingParameterFeatureSink,
QgsProcessingParameterFileDestination, QgsProcessingParameterFolderDestination)):
label = QLabel(dest.description())
item = QLineEdit()
item = QgsFilterLineEdit()
if hasattr(item, 'setPlaceholderText'):
item.setPlaceholderText(ModelerParametersDialog.ENTER_NAME)
self.verticalLayout.addWidget(label)
Expand Down

0 comments on commit 3665e46

Please sign in to comment.