Restores the current structure of the view widget from the inputed \
        settings instance.
        
        :param      settings | <QSettings>

def restoreSettings(self, settings):
        """
        Restores the current structure of the view widget from the inputed \
        settings instance.
        
        :param      settings | <QSettings>
        """
        key     = self.objectName()
        value   = unwrapVariant(settings.value('%s/profile' % key))
        
        if not value:
            self.reset(force = True)
            return False
            
        profile = value
        
        # restore the view type settings
        for viewType in self.viewTypes():
            viewType.restoreGlobalSettings(settings)
        
        # restore the profile
        self.restoreProfile(XViewProfile.fromString(profile))
        
        if not self.views():
            self.reset(force = True)
        
        return True