code: def restore_text_setting(self, key, line_edit):
          
          value = setting(key, expected_type=str, qsettings=self.settings)
          line_edit.setText(value)
docs: Set line_edit text according to setting of key.
  
          :param key: Key to retrieve setting value.
          :type key: str
  
          :param line_edit: Line edit for user to edit the setting
          :type line_edit: PyQt5.QtWidgets.QLineEdit.QLineEdit