code: def setFontUnderline(self, state):
          
          font = self.currentFont()
          font.setUnderline(state)
          self.setCurrentFont(font)
docs: Sets whether or not this editor is currently in underline state.
          
          :param      state | <bool>