X-Git-Url: http://git.onelab.eu/?p=sface.git;a=blobdiff_plain;f=sface%2Fscreens%2Fuserscreen.py;h=cfb7e4724350e530dda74c2b47a9a8e739218943;hp=677a2dbc832993a95f8a864df4030945f0c9164e;hb=c6329bf47bb381a75a23c34c02071e6f7571ba7b;hpb=7bc9576fe11f712b7ff8b5565bf5ad8d59ff06ab diff --git a/sface/screens/userscreen.py b/sface/screens/userscreen.py index 677a2db..cfb7e47 100644 --- a/sface/screens/userscreen.py +++ b/sface/screens/userscreen.py @@ -68,13 +68,10 @@ class UserNameDelegate(QStyledItemDelegate): if option.state & QStyle.State_Selected: painter.fillRect(option.rect, option.palette.color(QPalette.Active, QPalette.Highlight)) - color = None for x in user_status.keys(): if (user_status[x] == status_data) and (x in color_status): - color = color_status[x] + painter.fillPath(path, color_status[x]) - if color != None: - painter.fillPath(path, color) painter.setPen(QColor.fromRgb(0, 0, 0)) painter.drawText(textRect, Qt.AlignVCenter, QString(data))