X-Git-Url: http://git.onelab.eu/?p=sface.git;a=blobdiff_plain;f=sface%2Fscreens%2Fuserscreen.py;h=08d4ff93733ed9703065a630b91374bb84b48eb0;hp=677a2dbc832993a95f8a864df4030945f0c9164e;hb=77e243a9b79137aadeaaf60acc7e1da03a75f8ab;hpb=dc5a4a16b0819bc27efd1f77d632a76463db82c0 diff --git a/sface/screens/userscreen.py b/sface/screens/userscreen.py index 677a2db..08d4ff9 100644 --- a/sface/screens/userscreen.py +++ b/sface/screens/userscreen.py @@ -5,7 +5,6 @@ import pickle from PyQt4.QtCore import * from PyQt4.QtGui import * -from sfa.util.record import SfaRecord, SliceRecord, AuthorityRecord, UserRecord from sface.config import config from sface.sfiprocess import SfiProcess from sface.screens.sfascreen import SfaScreen @@ -68,13 +67,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))