code: def mousePressEvent(self, event):
          
          if self._mouse_over_line is not None:
              block = self.editor.document().findBlockByNumber(
                  self._mouse_over_line)
              self.toggle_fold_trigger(block)
docs: Folds/unfolds the pressed indicator if any.