diff --git a/incidenceeditor-ng/attendeecomboboxdelegate.cpp b/incidenceeditor-ng/attendeecomboboxdelegate.cpp --- a/incidenceeditor-ng/attendeecomboboxdelegate.cpp +++ b/incidenceeditor-ng/attendeecomboboxdelegate.cpp @@ -93,7 +93,7 @@ void AttendeeComboBoxDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const { - QStyleOptionButton myOption;; + QStyleOptionButton myOption; int value = index.model()->data(index).toUInt(); if (value >= entries.count()) { @@ -103,6 +103,7 @@ myOption.rect = option.rect; myOption.state = option.state; myOption.icon = entries[value].first; + myOption.iconSize = entries[value].first.actualSize(QSize(64,64)); QApplication::style()->drawControl(QStyle::CE_PushButton, &myOption, painter); }