Show enabled radios in desktop member rows

This commit is contained in:
evgeny committed 2026-10-04 15:59:45 +02:00
1 parent 0f9210e491
commit 6c5c1ef0a0
2 files changed
+7 -1

No files matched your search

+5
View File
@@ -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),