|
|
|
|
@ -59,6 +59,11 @@ void AccountDelegate::paint(QPainter *painter, const QStyleOptionViewItem &optio
|
|
|
|
|
FlagPainter::drawStorage(painter, flagX, option.rect.top() + (option.rect.height() - nameFont.pixelSize()) / 2, nameFont.pixelSize()); |
|
|
|
|
flagX += nameFont.pixelSize() + 2; |
|
|
|
|
} |
|
|
|
|
if (flags & MEMBER_FLAG_RADIO) { |
|
|
|
|
FlagPainter::drawRadio(painter, flagX, option.rect.top() + (option.rect.height() - nameFont.pixelSize()) / 2, |
|
|
|
|
nameFont.pixelSize(), textColor); |
|
|
|
|
flagX += nameFont.pixelSize() + 2; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
QString name = index.data(Qt::DisplayRole).toString(); |
|
|
|
|
painter->drawText(QRect(flagX, option.rect.top() + 2, w - (flagX - x), yMid - option.rect.top() - 2), |
|
|
|
|
|