src/eric7/Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py

branch
eric7
changeset 10458
2074b8393649
parent 10439
21c28b0f9e41
child 10690
fab36645aa7d
equal deleted inserted replaced
10457:4bef44d7a378 10458:2074b8393649
756 def col2x(col, radius): 756 def col2x(col, radius):
757 """ 757 """
758 Local function to calculate a x-position for a column. 758 Local function to calculate a x-position for a column.
759 759
760 @param col column number 760 @param col column number
761 @type int 761 @type int
762 @param radius radius of the indicator circle 762 @param radius radius of the indicator circle
763 @type int 763 @type int
764 """ 764 """
765 return int(1.2 * radius) * col + radius // 2 + 3 765 return int(1.2 * radius) * col + radius // 2 + 3
766 766
767 textColor = self.logTree.palette().color(QPalette.ColorRole.Text) 767 textColor = self.logTree.palette().color(QPalette.ColorRole.Text)
768 768

eric ide

mercurial