1
0

search box

This commit is contained in:
ThomasV
2015-04-23 13:50:35 +02:00
parent 6fb9f2e241
commit 45081b1c8b
2 changed files with 30 additions and 0 deletions

View File

@@ -330,6 +330,13 @@ class MyTreeWidget(QTreeWidget):
self.parent.update_history_tab()
self.parent.update_completions()
def filter(self, p, column):
root = self.invisibleRootItem()
child_count = root.childCount()
for i in range(child_count):
item = root.child(i)
item.setHidden(unicode(item.text(column)).lower().find(p) == -1)
class ButtonsWidget(QWidget):