Skip to content

Commit 53cd782

Browse files
committed
clean up
1 parent 1a6d3bc commit 53cd782

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

NodeGraphQt/widgets/tab_search.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,11 @@ def splitPath(self, path):
2929
return []
3030
return []
3131

32-
def updateModel(self,text=None):
32+
def updateModel(self):
3333
if not self._using_orig_model:
3434
self._filter_model.setSourceModel(self._source_model)
3535

36-
text = text or self._local_completion_prefix
37-
print(text)
38-
pattern = QtCore.QRegExp(text,
36+
pattern = QtCore.QRegExp(self._local_completion_prefix,
3937
QtCore.Qt.CaseInsensitive,
4038
QtCore.QRegExp.FixedString)
4139
self._filter_model.setFilterRegExp(pattern)
@@ -73,7 +71,6 @@ def __init__(self, parent=None, node_dict=None):
7371
popup.setStyleSheet(STYLE_TABSEARCH_LIST)
7472
popup.clicked.connect(self._on_search_submitted)
7573
self.returnPressed.connect(self._on_search_submitted)
76-
self.textChanged.connect(self._on_text_changed)
7774

7875
def __repr__(self):
7976
return '<{} at {}>'.format(self.__class__.__name__, hex(id(self)))
@@ -91,11 +88,6 @@ def _on_search_submitted(self, index=0):
9188
self.close()
9289
self.parentWidget().clearFocus()
9390

94-
def _on_text_changed(self, text):
95-
if not text:
96-
# TODO: show all items
97-
pass
98-
9991
def showEvent(self, event):
10092
super(TabSearchWidget, self).showEvent(event)
10193
self.setFocus()

0 commit comments

Comments
 (0)