src/eric7/WebBrowser/History/HistoryManager.py

branch
eric7
changeset 9473
3f23dbf37dbe
parent 9413
80c06d472826
child 9482
a2bc06a54d9d
equal deleted inserted replaced
9472:5798ee4a8807 9473:3f23dbf37dbe
9 9
10 import os 10 import os
11 import pathlib 11 import pathlib
12 12
13 from PyQt6.QtCore import ( 13 from PyQt6.QtCore import (
14 QByteArray,
15 QDataStream,
16 QDate,
17 QDateTime,
18 QFile,
19 QIODevice,
20 QObject,
21 QTemporaryFile,
22 QTime,
23 QTimer,
24 QUrl,
14 pyqtSignal, 25 pyqtSignal,
15 pyqtSlot, 26 pyqtSlot,
16 QDateTime,
17 QDate,
18 QTime,
19 QUrl,
20 QTimer,
21 QFile,
22 QIODevice,
23 QByteArray,
24 QDataStream,
25 QTemporaryFile,
26 QObject,
27 ) 27 )
28 28
29 from eric7 import Preferences, Utilities
29 from eric7.EricWidgets import EricMessageBox 30 from eric7.EricWidgets import EricMessageBox
30
31 from eric7.Utilities.AutoSaver import AutoSaver 31 from eric7.Utilities.AutoSaver import AutoSaver
32 from eric7 import Preferences, Utilities
33 32
34 HISTORY_VERSION_42 = 42 33 HISTORY_VERSION_42 = 42
35 HISTORY_VERSION_60 = 60 34 HISTORY_VERSION_60 = 60
36 HISTORY_VERSIONS = [HISTORY_VERSION_60, HISTORY_VERSION_42] 35 HISTORY_VERSIONS = [HISTORY_VERSION_60, HISTORY_VERSION_42]
37 36
149 self.entryAdded.connect(self.__saveTimer.changeOccurred) 148 self.entryAdded.connect(self.__saveTimer.changeOccurred)
150 self.entryRemoved.connect(self.__saveTimer.changeOccurred) 149 self.entryRemoved.connect(self.__saveTimer.changeOccurred)
151 150
152 self.__load() 151 self.__load()
153 152
153 from .HistoryFilterModel import HistoryFilterModel
154 from .HistoryModel import HistoryModel 154 from .HistoryModel import HistoryModel
155 from .HistoryFilterModel import HistoryFilterModel
156 from .HistoryTreeModel import HistoryTreeModel 155 from .HistoryTreeModel import HistoryTreeModel
157 156
158 self.__historyModel = HistoryModel(self, self) 157 self.__historyModel = HistoryModel(self, self)
159 self.__historyFilterModel = HistoryFilterModel(self.__historyModel, self) 158 self.__historyFilterModel = HistoryFilterModel(self.__historyModel, self)
160 self.__historyTreeModel = HistoryTreeModel(self.__historyFilterModel, self) 159 self.__historyTreeModel = HistoryTreeModel(self.__historyFilterModel, self)

eric ide

mercurial