14 |
14 |
15 import Helpviewer.HelpWindow |
15 import Helpviewer.HelpWindow |
16 from .HistoryModel import HistoryModel |
16 from .HistoryModel import HistoryModel |
17 |
17 |
18 from .Ui_HistoryDialog import Ui_HistoryDialog |
18 from .Ui_HistoryDialog import Ui_HistoryDialog |
19 |
|
20 import UI.PixmapCache |
|
21 |
19 |
22 |
20 |
23 class HistoryDialog(QDialog, Ui_HistoryDialog): |
21 class HistoryDialog(QDialog, Ui_HistoryDialog): |
24 """ |
22 """ |
25 Class implementing a dialog to manage history. |
23 Class implementing a dialog to manage history. |
37 @param parent reference to the parent widget (QWidget |
35 @param parent reference to the parent widget (QWidget |
38 @param manager reference to the history manager object (HistoryManager) |
36 @param manager reference to the history manager object (HistoryManager) |
39 """ |
37 """ |
40 super().__init__(parent) |
38 super().__init__(parent) |
41 self.setupUi(self) |
39 self.setupUi(self) |
42 |
|
43 self.clearButton.setIcon(UI.PixmapCache.getIcon("clearLeft.png")) |
|
44 |
40 |
45 self.__historyManager = manager |
41 self.__historyManager = manager |
46 if self.__historyManager is None: |
42 if self.__historyManager is None: |
47 self.__historyManager = Helpviewer.HelpWindow.HelpWindow.historyManager() |
43 self.__historyManager = Helpviewer.HelpWindow.HelpWindow.historyManager() |
48 |
44 |