Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

move setup_font_substitutions() to qtlib.py

Changeset 119a82833074

Parent fa14cbe27620

by Adrian Buehlmann

Changes to 3 files · Browse files at 119a82833074 Showing diff from parent fa14cbe27620 Diff from another changeset...

 
70
71
72
73
74
75
76
77
 
70
71
72
 
 
 
 
 
@@ -70,8 +70,3 @@
 sys.modules['repoview'] = repoview  sys.modules['fileview'] = fileview  sys.modules['workbench_rc'] = workbench_rc - -def setup_font_substitutions(): - # be sure monospace default font for diffs have a decent substitution - # on MacOS - QtGui.QFont.insertSubstitutions('monospace', ['monaco', 'courier new'])
 
120
121
122
 
 
 
 
120
121
122
123
124
125
@@ -120,3 +120,6 @@
  if event.text() == k:   btn.emit(QtCore.SIGNAL('clicked()'))   super(CustomPrompt, self).keyPressEvent(event) + +def setup_font_substitutions(): + QtGui.QFont.insertSubstitutions('monospace', ['monaco', 'courier new'])
 
26
27
28
29
 
30
31
32
 
297
298
299
300
 
301
302
303
 
26
27
28
 
29
30
31
32
 
297
298
299
 
300
301
302
303
@@ -26,7 +26,7 @@
 from tortoisehg.util.i18n import agettext as _  from tortoisehg.util import hglib, paths, shlib  from tortoisehg.util import version as thgversion -from tortoisehg.hgqt import setup_font_substitutions +from tortoisehg.hgqt import qtlib  try:   from tortoisehg.util.config import nofork as config_nofork  except ImportError: @@ -297,7 +297,7 @@
 def qtrun(dlgfunc, ui, *args, **opts):   portable_fork(ui, opts)   - setup_font_substitutions() + qtlib.setup_font_substitutions()     global mainapp   if mainapp: