mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-03-11 08:54:48 +00:00
parent
1f4c7cc22b
commit
60317ffadd
1 changed files with 1 additions and 0 deletions
|
|
@ -221,6 +221,7 @@ void CategoryListWidgetDelegate::paint(QPainter* painter,
|
||||||
opt.icon = QIcon();
|
opt.icon = QIcon();
|
||||||
opt.decorationAlignment = Qt::AlignHCenter | Qt::AlignVCenter;
|
opt.decorationAlignment = Qt::AlignHCenter | Qt::AlignVCenter;
|
||||||
opt.decorationPosition = QStyleOptionViewItem::Top;
|
opt.decorationPosition = QStyleOptionViewItem::Top;
|
||||||
|
opt.decorationSize = iconSize;
|
||||||
|
|
||||||
QScopedPointer<QStyle> style(new IconSelectionCorrectedStyle());
|
QScopedPointer<QStyle> style(new IconSelectionCorrectedStyle());
|
||||||
style->drawControl(QStyle::CE_ItemViewItem, &opt, painter, opt.widget);
|
style->drawControl(QStyle::CE_ItemViewItem, &opt, painter, opt.widget);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue