9412:45e7bb09c120 | 9413:80c06d472826 |
---|---|
24 QDataStream, | 24 QDataStream, |
25 QTemporaryFile, | 25 QTemporaryFile, |
26 QObject, | 26 QObject, |
27 ) | 27 ) |
28 | 28 |
29 from EricWidgets import EricMessageBox | 29 from eric7.EricWidgets import EricMessageBox |
30 | 30 |
31 from Utilities.AutoSaver import AutoSaver | 31 from eric7.Utilities.AutoSaver import AutoSaver |
32 import Utilities | 32 from eric7 import Preferences, Utilities |
33 import Preferences | |
34 | 33 |
35 HISTORY_VERSION_42 = 42 | 34 HISTORY_VERSION_42 = 42 |
36 HISTORY_VERSION_60 = 60 | 35 HISTORY_VERSION_60 = 60 |
37 HISTORY_VERSIONS = [HISTORY_VERSION_60, HISTORY_VERSION_42] | 36 HISTORY_VERSIONS = [HISTORY_VERSION_60, HISTORY_VERSION_42] |
38 | 37 |
239 Public method to add a history entry. | 238 Public method to add a history entry. |
240 | 239 |
241 @param view reference to the view to add an entry for | 240 @param view reference to the view to add an entry for |
242 @type WebBrowserView | 241 @type WebBrowserView |
243 """ | 242 """ |
244 import WebBrowser.WebBrowserWindow | 243 from eric7.WebBrowser.WebBrowserWindow import WebBrowserWindow |
245 | 244 |
246 if WebBrowser.WebBrowserWindow.WebBrowserWindow.isPrivate(): | 245 if WebBrowserWindow.isPrivate(): |
247 return | 246 return |
248 | 247 |
249 url = view.url() | 248 url = view.url() |
250 title = view.title() | 249 title = view.title() |
251 | 250 |