def reset(self): """Reset the location filter screen.""" uncheck_and_emit(self.apply_remove_btn) self._owner.search_bar_location.setText('') show_matching_strings(self._owner.locations_list, self._owner.search_bar_location.text()) for i in range(self._owner.locations_list.count()): if self._owner.locations_list.item(i).isSelected(): self._owner.locations_list.item(i).setSelected(False)
def _show_matching_locations(self, text): """Show the locations which matches 'text'. The match criterion is defined in 'show_matching_strings'.""" show_matching_strings(self._owner.locations_list, text)