7 Module implementing a dialog to show the output of the hg annotate command. |
7 Module implementing a dialog to show the output of the hg annotate command. |
8 """ |
8 """ |
9 |
9 |
10 import os |
10 import os |
11 |
11 |
12 from PyQt4.QtCore import pyqtSlot, SIGNAL, QProcess, QTimer, Qt |
12 from PyQt4.QtCore import pyqtSlot, QProcess, QTimer, Qt |
13 from PyQt4.QtGui import QDialog, QDialogButtonBox, QFont, QMessageBox, QHeaderView, \ |
13 from PyQt4.QtGui import QDialog, QDialogButtonBox, QFont, QMessageBox, QHeaderView, \ |
14 QTreeWidgetItem, QLineEdit |
14 QTreeWidgetItem, QLineEdit |
15 |
15 |
16 from .Ui_HgAnnotateDialog import Ui_HgAnnotateDialog |
16 from .Ui_HgAnnotateDialog import Ui_HgAnnotateDialog |
17 |
17 |
46 font.setFamily("Monospace") |
46 font.setFamily("Monospace") |
47 self.annotateList.setFont(font) |
47 self.annotateList.setFont(font) |
48 |
48 |
49 self.__ioEncoding = Preferences.getSystem("IOEncoding") |
49 self.__ioEncoding = Preferences.getSystem("IOEncoding") |
50 |
50 |
51 self.connect(self.process, SIGNAL('finished(int, QProcess::ExitStatus)'), |
51 self.process.finished.connect(self.__procFinished) |
52 self.__procFinished) |
52 self.process.readyReadStandardOutput.connect(self.__readStdout) |
53 self.connect(self.process, SIGNAL('readyReadStandardOutput()'), |
53 self.process.readyReadStandardOutput.connect(self.__readStderr) |
54 self.__readStdout) |
|
55 self.connect(self.process, SIGNAL('readyReadStandardError()'), |
|
56 self.__readStderr) |
|
57 |
54 |
58 def closeEvent(self, e): |
55 def closeEvent(self, e): |
59 """ |
56 """ |
60 Private slot implementing a close event handler. |
57 Private slot implementing a close event handler. |
61 |
58 |