def restoreSettings(self, settings):
        """
        Restores the settings for this logger from the inputed settings.
        
        :param      <QtCore.QSettings>
        """
        levels = unwrapVariant(settings.value('levels'))
        if levels:
            self.setActiveLevels(map(int, levels.split(',')))
        
        logger_levels = unwrapVariant(settings.value('loggerLevels'))
        if logger_levels:
            for key in logger_levels.split(','):
                logger, lvl = key.split(':')
                lvl = int(lvl)
                self.setLoggerLevel(logger, lvl)
        
        filt = unwrapVariant(settings.value('filter'))
        if filt:
            self.uiFilterTXT.setText(filt)
        self.uiRecordTREE.restoreSettings(settings)
def restoreSettings ( self , settings ) : levels = unwrapVariant ( settings . value ( 'levels' ) ) if levels : self . setActiveLevels ( map ( int , levels . split ( ',' ) ) ) logger_levels = unwrapVariant ( settings . value ( 'loggerLevels' ) ) if logger_levels : for key in logger_levels . split ( ',' ) : logger , lvl = key . split ( ':' ) lvl = int ( lvl ) self . setLoggerLevel ( logger , lvl ) filt = unwrapVariant ( settings . value ( 'filter' ) ) if filt : self . uiFilterTXT . setText ( filt ) self . uiRecordTREE . restoreSettings ( settings )
Restores the settings for this logger from the inputed settings.
        
        :param      <QtCore.QSettings>