23 from E5Gui import E5MessageBox |
23 from E5Gui import E5MessageBox |
24 |
24 |
25 from .Ui_HgAnnotateDialog import Ui_HgAnnotateDialog |
25 from .Ui_HgAnnotateDialog import Ui_HgAnnotateDialog |
26 |
26 |
27 import Preferences |
27 import Preferences |
|
28 from Globals import strToQByteArray |
28 |
29 |
29 |
30 |
30 class HgAnnotateDialog(QDialog, Ui_HgAnnotateDialog): |
31 class HgAnnotateDialog(QDialog, Ui_HgAnnotateDialog): |
31 """ |
32 """ |
32 Class implementing a dialog to show the output of the hg annotate command. |
33 Class implementing a dialog to show the output of the hg annotate command. |
293 self.errors.ensureCursorVisible() |
294 self.errors.ensureCursorVisible() |
294 else: |
295 else: |
295 self.errors.insertPlainText(inputTxt) |
296 self.errors.insertPlainText(inputTxt) |
296 self.errors.ensureCursorVisible() |
297 self.errors.ensureCursorVisible() |
297 |
298 |
298 self.process.write(inputTxt) |
299 self.process.write(strToQByteArray(inputTxt)) |
299 |
300 |
300 self.passwordCheckBox.setChecked(False) |
301 self.passwordCheckBox.setChecked(False) |
301 self.input.clear() |
302 self.input.clear() |
302 |
303 |
303 def on_input_returnPressed(self): |
304 def on_input_returnPressed(self): |