5 |
5 |
6 """ |
6 """ |
7 Module implementing a dialog to show the output of the git diff command |
7 Module implementing a dialog to show the output of the git diff command |
8 process. |
8 process. |
9 """ |
9 """ |
10 |
|
11 |
10 |
12 from PyQt5.QtCore import pyqtSlot, QFileInfo, Qt |
11 from PyQt5.QtCore import pyqtSlot, QFileInfo, Qt |
13 from PyQt5.QtGui import QTextCursor |
12 from PyQt5.QtGui import QTextCursor |
14 from PyQt5.QtWidgets import QWidget, QDialogButtonBox |
13 from PyQt5.QtWidgets import QWidget, QDialogButtonBox |
15 |
14 |
74 self.searchWidget2 = None |
73 self.searchWidget2 = None |
75 |
74 |
76 self.vcs = vcs |
75 self.vcs = vcs |
77 |
76 |
78 font = Preferences.getEditorOtherFonts("MonospacedFont") |
77 font = Preferences.getEditorOtherFonts("MonospacedFont") |
79 self.contents.setFontFamily(font.family()) |
78 self.contents.document().setDefaultFont(font) |
80 self.contents.setFontPointSize(font.pointSize()) |
79 self.contents2.document().setDefaultFont(font) |
81 self.contents2.setFontFamily(font.family()) |
|
82 self.contents2.setFontPointSize(font.pointSize()) |
|
83 |
80 |
84 self.highlighter = GitDiffHighlighter(self.contents.document()) |
81 self.highlighter = GitDiffHighlighter(self.contents.document()) |
85 self.highlighter2 = GitDiffHighlighter(self.contents2.document()) |
82 self.highlighter2 = GitDiffHighlighter(self.contents2.document()) |
86 |
83 |
87 self.__diffGenerator = GitDiffGenerator(vcs, self) |
84 self.__diffGenerator = GitDiffGenerator(vcs, self) |