[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

@@ -181,7 +181,7 @@ void InputField::resizeEvent(QResizeEvent *)
QSize sz = iconLabel->sizeHint();
int frameWidth = style()->pixelMetric(QStyle::PM_DefaultFrameWidth);
iconLabel->move(rect().right() - frameWidth - sz.width(),
(rect().bottom() + 1 - sz.height())/2);
rect().center().y() - sz.height() / 2);
}
void InputField::updateIconLabel(const QString& text)