Skip to content

Commit

Permalink
Add algorithm search functionality and hint text in workflow creator …
Browse files Browse the repository at this point in the history
…dialog

Fixes #18
  • Loading branch information
radosuav committed Sep 7, 2020
1 parent 63228ce commit f760ef5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions WorkflowCreatorDialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,13 @@ def setupUi(self):
self.centralWidget().layout().insertWidget(0, self.bar)
self.setDockOptions(self.dockOptions() | QMainWindow.GroupedDragging)

if hasattr(self.searchBox, 'setPlaceholderText'):
self.searchBox.setPlaceholderText(self.tr('Search...'))
if hasattr(self.textName, 'setPlaceholderText'):
self.textName.setPlaceholderText(self.tr('Enter workflow name here'))
if hasattr(self.textGroup, 'setPlaceholderText'):
self.textGroup.setPlaceholderText(self.tr('Enter group name here'))

if iface is not None:
self.mToolbar.setIconSize(iface.iconSize())
self.setStyleSheet(iface.mainWindow().styleSheet())
Expand Down Expand Up @@ -227,6 +234,7 @@ def setupUi(self):
self.mActionRemoveStep.triggered.connect(self.removeStep)
self.mActionRun.triggered.connect(self.runWorkflow)
self.algorithmTree.doubleClicked.connect(self.addAlgorithm)
self.searchBox.textChanged.connect(self.algorithmTree.setFilterString)

def closeEvent(self, evt):
settings = QgsSettings()
Expand Down

0 comments on commit f760ef5

Please sign in to comment.