from PyQt4.QtCore import *
from PyQt4.QtGui import *
-from sfa.util.record import SfaRecord, SliceRecord, AuthorityRecord, UserRecord
+from sfa.storage.record import SfaRecord, SliceRecord, AuthorityRecord, UserRecord
from sface.config import config
from sface.sfiprocess import SfiProcess
from sface.screens.sfascreen import SfaScreen
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))