Plugins/VcsPlugins/vcsMercurial/HgAnnotateDialog.py

changeset 3192
34689c08f095
parent 3190
a9a94491c4fd
child 3302
e92f0dd51979
equal deleted inserted replaced
3191:a237994f4235 3192:34689c08f095
8 """ 8 """
9 9
10 import os 10 import os
11 11
12 from PyQt4.QtCore import pyqtSlot, QProcess, QTimer, Qt, QCoreApplication 12 from PyQt4.QtCore import pyqtSlot, QProcess, QTimer, Qt, QCoreApplication
13 from PyQt4.QtGui import QDialog, QDialogButtonBox, QFont, QHeaderView, \ 13 from PyQt4.QtGui import QDialog, QDialogButtonBox, QHeaderView, QLineEdit, \
14 QTreeWidgetItem, QLineEdit 14 QTreeWidgetItem
15 15
16 from E5Gui import E5MessageBox 16 from E5Gui import E5MessageBox
17 17
18 from .Ui_HgAnnotateDialog import Ui_HgAnnotateDialog 18 from .Ui_HgAnnotateDialog import Ui_HgAnnotateDialog
19 19
20 import Preferences 20 import Preferences
21 import Utilities
22 21
23 22
24 class HgAnnotateDialog(QDialog, Ui_HgAnnotateDialog): 23 class HgAnnotateDialog(QDialog, Ui_HgAnnotateDialog):
25 """ 24 """
26 Class implementing a dialog to show the output of the hg annotate command. 25 Class implementing a dialog to show the output of the hg annotate command.
41 self.vcs = vcs 40 self.vcs = vcs
42 self.__hgClient = vcs.getClient() 41 self.__hgClient = vcs.getClient()
43 42
44 self.annotateList.headerItem().setText( 43 self.annotateList.headerItem().setText(
45 self.annotateList.columnCount(), "") 44 self.annotateList.columnCount(), "")
46 font = QFont(self.annotateList.font()) 45 font = Preferences.getEditorOtherFonts("MonospacedFont")
47 if Utilities.isWindowsPlatform():
48 font.setFamily("Lucida Console")
49 else:
50 font.setFamily("Monospace")
51 self.annotateList.setFont(font) 46 self.annotateList.setFont(font)
52 47
53 self.__ioEncoding = Preferences.getSystem("IOEncoding") 48 self.__ioEncoding = Preferences.getSystem("IOEncoding")
54 49
55 if self.__hgClient: 50 if self.__hgClient:

eric ide

mercurial