code: def restoreSettings(self, settings):
          
          settings.beginGroup(self.objectName())
          
          curr_prof = None
          curr_name = unwrapVariant(settings.value('current'))
          
          profiles = []
          for prof_name in settings.childGroups():
              settings.beginGroup(prof_name)
              
              prof_str = unwrapVariant(settings.value('profile'))
              profile  = XViewProfile.fromString(prof_str)
              profile.setName(prof_name)
              
              if prof_name == curr_name:
                  curr_prof = profile
              
              profiles.append(profile)
              
              settings.endGroup()
          
          self.blockSignals(True)
          self._profileCombo.blockSignals(True)
          self.setProfiles(profiles)
          
          if curr_prof:
              self.setCurrentProfile(curr_prof)
          
          self._profileCombo.blockSignals(False)
          self.blockSignals(False)
          
          settings.endGroup()
docs: Restores settings from the application.
          
          :param      settings | <QSettings>