Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py

changeset 244
30be2b4a9721
parent 243
a1d982e68edf
child 296
dd17398ccf12
equal deleted inserted replaced
243:a1d982e68edf 244:30be2b4a9721
236 @param currentRev flag indicating to draw the icon for the 236 @param currentRev flag indicating to draw the icon for the
237 current revision (boolean) 237 current revision (boolean)
238 @return icon for the node (QIcon) 238 @return icon for the node (QIcon)
239 """ 239 """
240 def col2x(col, radius): 240 def col2x(col, radius):
241 """
242 Local function to calculate a x-position for a column.
243
244 @param col column number (integer)
245 @param radius radius of the indicator circle (integer)
246 """
241 return int(1.2 * radius) * col + radius // 2 + 3 247 return int(1.2 * radius) * col + radius // 2 + 3
242 248
243 radius = self.__dotRadius 249 radius = self.__dotRadius
244 w = len(bottomedges) * radius + 20 250 w = len(bottomedges) * radius + 20
245 h = self.__rowHeight 251 h = self.__rowHeight

eric ide

mercurial