WebBrowser/StatusBar/ImagesIcon.py

changeset 6127
128d9567a533
parent 6048
82ad8ec9548c
child 6645
ad476851d7e0
equal deleted inserted replaced
6126:6c4509eceea2 6127:128d9567a533
122 Private slot to toggle the global images loading setting. 122 Private slot to toggle the global images loading setting.
123 123
124 @param enable flag indicating the state to set 124 @param enable flag indicating the state to set
125 @type bool 125 @type bool
126 """ 126 """
127 QWebEngineSettings.defaultSettings().setAttribute( 127 from WebBrowser.WebBrowserWindow import WebBrowserWindow
128 WebBrowserWindow.webSettings().setAttribute(
128 QWebEngineSettings.AutoLoadImages, enable) 129 QWebEngineSettings.AutoLoadImages, enable)
129 Preferences.setWebBrowser("AutoLoadImages", enable) 130 Preferences.setWebBrowser("AutoLoadImages", enable)
130 131
131 Preferences.syncPreferences() 132 Preferences.syncPreferences()
132 self._window.preferencesChanged() 133 self._window.preferencesChanged()

eric ide

mercurial