code: def _resetSelection(self, moveToTop=False):
          
          ancor, pos = self._qpart.selectedPosition
          dst = min(ancor, pos) if moveToTop else pos
          self._qpart.cursorPosition = dst
docs: Reset selection.
          If moveToTop is True - move cursor to the top position