Commit 75525b4d authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix draw icon pos

parent 4a40b024
......@@ -225,7 +225,9 @@ void ContactGroupEditorDelegate::paint(QPainter *painter, const QStyleOptionView
QStyledItemDelegate::paint(painter, option, index);
if (index.column() == 1 && !isLastRow(index)) {
d->mIcon.paint(painter, option.rect, Qt::AlignRight);
QRect buttonRect = d->mItemView->visualRect(index);
buttonRect.setLeft(buttonRect.right() - d->mButtonSize.width());
d->mIcon.paint(painter, buttonRect, Qt::AlignRight);
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment