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: draw special node symbol in graph for branch closing

the symbol is a small horizontal rect

Changeset e562fc9b78d1

Parent 12cbb1cced40

by Adrian Buehlmann

Changes to one file · Browse files at e562fc9b78d1 Showing diff from parent 12cbb1cced40 Diff from another changeset...

 
334
335
336
 
 
 
 
337
338
339
 
353
354
355
 
 
 
356
357
358
 
334
335
336
337
338
339
340
341
342
343
 
357
358
359
360
361
362
363
364
365
@@ -334,6 +334,10 @@
  2 * r, 2 * r)   painter.drawEllipse(rect)   + def closesymbol(s): + rect_ = QRectF(centre_x - 1.5 * s, centre_y - 0.5 * s, 3 * s, s) + painter.drawRect(rect_) +   def diamond(r):   poly = QPolygonF([QPointF(centre_x - r, centre_y),   QPointF(centre_x, centre_y - r), @@ -353,6 +357,9 @@
  painter.setBrush(patchcolor)   painter.setPen(patchcolor)   diamond(radius / 1.5) + elif ctx.extra().get('close'): + painter.setBrush(fillcolor) + closesymbol(0.5 * radius)   else: # circles for normal revisions   if ctx.thgwdparent():   painter.setBrush(white)