111 def __setupCompleterMenu(self): |
111 def __setupCompleterMenu(self): |
112 """ |
112 """ |
113 Private method to create the completer menu. |
113 Private method to create the completer menu. |
114 """ |
114 """ |
115 if not self.__suggestions or \ |
115 if not self.__suggestions or \ |
116 (self.__model.rowCount() > 0 and \ |
116 (self.__model.rowCount() > 0 and |
117 self.__model.item(0) != self.__suggestionsItem): |
117 self.__model.item(0) != self.__suggestionsItem): |
118 self.__model.clear() |
118 self.__model.clear() |
119 self.__suggestionsItem = None |
119 self.__suggestionsItem = None |
120 else: |
120 else: |
121 self.__model.removeRows(1, self.__model.rowCount() - 1) |
121 self.__model.removeRows(1, self.__model.rowCount() - 1) |