reduce icon size in completion popup
This commit is contained in:
parent
ba6d8fa77d
commit
dce6d97009
|
@ -1345,7 +1345,7 @@ void CodeCompletionListItemDelegate::paint(QPainter *painter, const QStyleOption
|
||||||
painter->fillRect(option.rect, mCurrentSelectionColor);
|
painter->fillRect(option.rect, mCurrentSelectionColor);
|
||||||
}
|
}
|
||||||
QFontMetrics fm{font()};
|
QFontMetrics fm{font()};
|
||||||
int iconSize = fm.ascent();
|
int iconSize = fm.height()*0.8;
|
||||||
QPixmap icon = mModel->statementIcon(index, iconSize);
|
QPixmap icon = mModel->statementIcon(index, iconSize);
|
||||||
int x=option.rect.left();
|
int x=option.rect.left();
|
||||||
if (!icon.isNull()) {
|
if (!icon.isNull()) {
|
||||||
|
|
Loading…
Reference in New Issue