Skip to content
Permalink
Browse files

[processing] improved algorithm filtering in toolbox

  • Loading branch information
volaya committed Mar 26, 2014
1 parent eb360e0 commit b74cb427de4c37c3c2713b3b0ca14a7d6d28c24a
Showing with 3 additions and 3 deletions.
  1. +3 −3 python/plugins/processing/gui/ProcessingToolbox.py
@@ -75,7 +75,7 @@ def __init__(self):
self.fillTree()

def textChanged(self):
text = self.searchBox.text().strip(' ')
text = self.searchBox.text().strip(' ').lower()
self._filterItem(self.algorithmTree.invisibleRootItem(), text)
if text:
self.algorithmTree.expandAll()
@@ -92,8 +92,8 @@ def _filterItem(self, item, text):
show = showChild or show
item.setHidden(not show)
return show
elif isinstance(item, TreeAlgorithmItem):
hide = bool(text) and (text not in item.text(0))
elif isinstance(item, (TreeAlgorithmItem, TreeActionItem)):
hide = bool(text) and (text not in item.text(0).lower())
item.setHidden(hide)
return not hide
else:

0 comments on commit b74cb42

Please sign in to comment.
You can’t perform that action at this time.