code: def rejected(self):
          
          self._resetWidgets()
          self.exported.emit(False)
          self.reject()
docs: Close the widget and reset its inital state.
  
          This method is also a `SLOT`.
          The dialog will be closed and all changes reverted, when the
          `cancel` button is pressed.