4 # |
4 # |
5 |
5 |
6 """ |
6 """ |
7 Module implementing a dialog to show the output of the hg diff command process. |
7 Module implementing a dialog to show the output of the hg diff command process. |
8 """ |
8 """ |
9 |
|
10 |
9 |
11 from PyQt5.QtCore import pyqtSlot, QFileInfo, Qt |
10 from PyQt5.QtCore import pyqtSlot, QFileInfo, Qt |
12 from PyQt5.QtGui import QTextCursor |
11 from PyQt5.QtGui import QTextCursor |
13 from PyQt5.QtWidgets import QWidget, QDialogButtonBox |
12 from PyQt5.QtWidgets import QWidget, QDialogButtonBox |
14 |
13 |
49 self.searchWidget.attachTextEdit(self.contents) |
48 self.searchWidget.attachTextEdit(self.contents) |
50 |
49 |
51 self.vcs = vcs |
50 self.vcs = vcs |
52 |
51 |
53 font = Preferences.getEditorOtherFonts("MonospacedFont") |
52 font = Preferences.getEditorOtherFonts("MonospacedFont") |
54 self.contents.setFontFamily(font.family()) |
53 self.contents.document().setDefaultFont(font) |
55 self.contents.setFontPointSize(font.pointSize()) |
|
56 |
54 |
57 self.highlighter = HgDiffHighlighter(self.contents.document()) |
55 self.highlighter = HgDiffHighlighter(self.contents.document()) |
58 |
56 |
59 self.__diffGenerator = HgDiffGenerator(vcs, self) |
57 self.__diffGenerator = HgDiffGenerator(vcs, self) |
60 self.__diffGenerator.finished.connect(self.__generatorFinished) |
58 self.__diffGenerator.finished.connect(self.__generatorFinished) |