Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.0, 2.0.1, and 2.0.2

stable repomodel: use unicode X in a rectangle box character when available

Changeset 6b3624b649cf

Parent 93681fa12555

by André Sintzoff

Changes to 2 files · Browse files at 6b3624b649cf Showing diff from parent 93681fa12555 Diff from another changeset...

 
78
79
80
 
81
82
83
 
486
487
488
489
 
 
 
 
490
491
492
 
78
79
80
81
82
83
84
 
487
488
489
 
490
491
492
493
494
495
496
@@ -78,6 +78,7 @@
  self.revset = revset   self.filterbyrevset = rfilter   self.unicodestar = True + self.unicodexinabox = True     # To be deleted   self._user_colors = {} @@ -486,7 +487,10 @@
  def getbranch(self, ctx, gnode):   b = hglib.tounicode(ctx.branch())   if ctx.extra().get('close'): - b += u'--' + if self.unicodexinabox: + b += u' \u2327' + else: + b += u'--'   return b     def gettags(self, ctx, gnode):
 
73
74
75
 
 
76
77
78
 
73
74
75
76
77
78
79
80
@@ -73,6 +73,8 @@
  #Check if the font contains the glyph needed by the model   if not QFontMetrics(self.font()).inFont(QString(u'\u2605').at(0)):   model.unicodestar = False + if not QFontMetrics(self.font()).inFont(QString(u'\u2327').at(0)): + model.unicodeclosed = False   self.selectionModel().currentRowChanged.connect(self.onRowChange)   self.resetDelegate()   self._rev_history = []