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() |