Show enabled radios in desktop member rows
This commit is contained in:
1 parent
0f9210e491
commit
6c5c1ef0a0
2 files changed
+7
-1
No files matched your search
@@ -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),
|
||||
|
||||
Reference in new issue
Block a user