|
|
|
@ -13,9 +13,9 @@ void AccountDelegate::paint(QPainter *painter, const QStyleOptionViewItem &optio |
|
|
|
if (option.state & QStyle::State_Selected) |
|
|
|
if (option.state & QStyle::State_Selected) |
|
|
|
painter->fillRect(option.rect, option.palette.highlight()); |
|
|
|
painter->fillRect(option.rect, option.palette.highlight()); |
|
|
|
else if (option.state & QStyle::State_MouseOver) |
|
|
|
else if (option.state & QStyle::State_MouseOver) |
|
|
|
painter->fillRect(option.rect, QColor(240, 240, 240)); |
|
|
|
painter->fillRect(option.rect, option.palette.light()); |
|
|
|
else |
|
|
|
else |
|
|
|
painter->fillRect(option.rect, option.palette.base()); |
|
|
|
painter->fillRect(option.rect, option.palette.alternateBase()); |
|
|
|
|
|
|
|
|
|
|
|
const int margin = 4; |
|
|
|
const int margin = 4; |
|
|
|
const int iconSz = 24; |
|
|
|
const int iconSz = 24; |
|
|
|
|