add background settings to the tooltip

This commit is contained in:
arcan1s
2014-08-02 17:49:25 +04:00
parent 5ea8c97094
commit ee39ac9203
7 changed files with 78 additions and 3 deletions

View File

@ -47,6 +47,10 @@ class Tooltip():
values = ptmTooltip['values']
maxOne = [100.0, 100.0]
bounds['down'] = 1.0
if (colors['background'] != "null"):
widget.setBackgroundBrush(QColor(colors['background']))
else:
widget.setBackgroundBrush(QBrush(Qt.NoBrush))
for value in values['down']:
if (bounds['down'] < value):
bounds['down'] = value