96 """ |
96 """ |
97 Constructor |
97 Constructor |
98 |
98 |
99 @param parent reference to the parent object (QObject) |
99 @param parent reference to the parent object (QObject) |
100 """ |
100 """ |
101 QWebHistoryInterface.__init__(self, parent) |
101 super().__init__(parent) |
102 |
102 |
103 self.__saveTimer = AutoSaver(self, self.save) |
103 self.__saveTimer = AutoSaver(self, self.save) |
104 self.__daysToExpire = Preferences.getHelp("HistoryLimit") |
104 self.__daysToExpire = Preferences.getHelp("HistoryLimit") |
105 self.__history = [] |
105 self.__history = [] |
106 self.__lastSavedUrl = "" |
106 self.__lastSavedUrl = "" |
120 |
120 |
121 self.__historyModel = HistoryModel(self, self) |
121 self.__historyModel = HistoryModel(self, self) |
122 self.__historyFilterModel = HistoryFilterModel(self.__historyModel, self) |
122 self.__historyFilterModel = HistoryFilterModel(self.__historyModel, self) |
123 self.__historyTreeModel = HistoryTreeModel(self.__historyFilterModel, self) |
123 self.__historyTreeModel = HistoryTreeModel(self.__historyFilterModel, self) |
124 |
124 |
125 QWebHistoryInterface.setDefaultInterface(self) |
125 super().setDefaultInterface() |
126 self.__startFrequencyTimer() |
126 self.__startFrequencyTimer() |
127 |
127 |
128 def close(self): |
128 def close(self): |
129 """ |
129 """ |
130 Public method to close the history manager. |
130 Public method to close the history manager. |