def update_settings(section, option):
 if ((section, option) == ('general', 'private-browsing')):
  cache_path = standarddir.cache()
  if (config.get('general', 'private-browsing') or (cache_path is None)):
   QWebSettings.setIconDatabasePath('')
  else:
   QWebSettings.setIconDatabasePath(cache_path)
 elif ((section == 'ui') and (option in ['hide-scrollbar', 'user-stylesheet'])):
  _set_user_stylesheet()
 websettings.update_mappings(MAPPINGS, section, option)

def update_settings ( section , option ) : if ( ( section , option ) == ( 'general' , 'private-browsing' ) ) : cache_path = standarddir . cache ( ) if ( config . get ( 'general' , 'private-browsing' ) or ( cache_path is None ) ) : QWebSettings . setIconDatabasePath ( '' ) else : QWebSettings . setIconDatabasePath ( cache_path ) elif ( ( section == 'ui' ) and ( option in [ 'hide-scrollbar' , 'user-stylesheet' ] ) ) : _set_user_stylesheet ( ) websettings . update_mappings ( MAPPINGS , section , option )
update global settings when qwebsettings changed .