13 from PyQt6.QtWidgets import ( |
13 from PyQt6.QtWidgets import ( |
14 QWidget, QDialogButtonBox, QHeaderView, QTreeWidgetItem, QApplication, |
14 QWidget, QDialogButtonBox, QHeaderView, QTreeWidgetItem, QApplication, |
15 QLineEdit |
15 QLineEdit |
16 ) |
16 ) |
17 |
17 |
18 from E5Gui import E5MessageBox |
18 from E5Gui import EricMessageBox |
19 from E5Gui.E5OverrideCursor import E5OverrideCursorProcess |
19 from E5Gui.EricOverrideCursor import EricOverrideCursorProcess |
20 |
20 |
21 from .Ui_GitBisectLogBrowserDialog import Ui_GitBisectLogBrowserDialog |
21 from .Ui_GitBisectLogBrowserDialog import Ui_GitBisectLogBrowserDialog |
22 |
22 |
23 import Preferences |
23 import Preferences |
24 from Globals import strToQByteArray |
24 from Globals import strToQByteArray |
63 self.__currentCommitId = "" |
63 self.__currentCommitId = "" |
64 |
64 |
65 self.__initData() |
65 self.__initData() |
66 self.__resetUI() |
66 self.__resetUI() |
67 |
67 |
68 self.__process = E5OverrideCursorProcess() |
68 self.__process = EricOverrideCursorProcess() |
69 self.__process.finished.connect(self.__procFinished) |
69 self.__process.finished.connect(self.__procFinished) |
70 self.__process.readyReadStandardOutput.connect(self.__readStdout) |
70 self.__process.readyReadStandardOutput.connect(self.__readStdout) |
71 self.__process.readyReadStandardError.connect(self.__readStderr) |
71 self.__process.readyReadStandardError.connect(self.__readStderr) |
72 |
72 |
73 def __initData(self): |
73 def __initData(self): |
168 self.__process.start('git', args) |
168 self.__process.start('git', args) |
169 procStarted = self.__process.waitForStarted(5000) |
169 procStarted = self.__process.waitForStarted(5000) |
170 if not procStarted: |
170 if not procStarted: |
171 self.inputGroup.setEnabled(False) |
171 self.inputGroup.setEnabled(False) |
172 self.inputGroup.hide() |
172 self.inputGroup.hide() |
173 E5MessageBox.critical( |
173 EricMessageBox.critical( |
174 self, |
174 self, |
175 self.tr('Process Generation Error'), |
175 self.tr('Process Generation Error'), |
176 self.tr( |
176 self.tr( |
177 'The process {0} could not be started. ' |
177 'The process {0} could not be started. ' |
178 'Ensure, that it is in the search path.' |
178 'Ensure, that it is in the search path.' |