code: def setAutoDefault(self, state):
          
          self._autoDefault = state
          for button in self.buttonBox().buttons():
              button.setAutoDefault(state)
              button.setDefault(state)
docs: Sets whether or not the buttons should respond to defaulting options
          when the user is interacting with it.
          
          :param      state | <bool>