25 |
25 |
26 @param history reference to the current shell history (list of strings) |
26 @param history reference to the current shell history (list of strings) |
27 @param vm reference to the viewmanager object |
27 @param vm reference to the viewmanager object |
28 @param shell reference to the shell object |
28 @param shell reference to the shell object |
29 """ |
29 """ |
30 QDialog.__init__(self, shell) |
30 super().__init__(shell) |
31 self.setupUi(self) |
31 self.setupUi(self) |
32 |
32 |
33 self.historyList.addItems(history) |
33 self.historyList.addItems(history) |
34 self.historyList.setCurrentRow(self.historyList.count() - 1, |
34 self.historyList.setCurrentRow(self.historyList.count() - 1, |
35 QItemSelectionModel.Clear) |
35 QItemSelectionModel.Clear) |