[Gui] Center expression icon

This commit is contained in:
Benjamin Bræstrup Sayoc
2024-10-04 21:51:02 +02:00
committed by Yorik van Havre
parent 902f9072db
commit 18c463bcbb
3 changed files with 3 additions and 3 deletions

View File

@@ -168,7 +168,7 @@ void ExpressionSpinBox::resizeWidget()
int frameWidth = spinbox->style()->pixelMetric(QStyle::PM_SpinBoxFrameWidth);
QSize sz = iconLabel->sizeHint();
iconLabel->move(lineedit->rect().right() - frameWidth - sz.width(), 0);
iconLabel->move(lineedit->rect().right() - frameWidth - sz.width(), lineedit->rect().center().y() - sz.height() / 2);
updateExpression();
}