Commit aa78ef29 authored by Jan Möbius's avatar Jan Möbius
Browse files

Revert "Removed deprecated function"

This reverts commit 79a1c927
parent fc59a3d7
......@@ -84,7 +84,7 @@ void QtColorChooserButton::paintEvent(QPaintEvent *ev) {
QStylePainter painter(this);
const int textWd = buttonOptions.fontMetrics.horizontalAdvance(buttonOptions.text);
const int textWd = buttonOptions.fontMetrics.width(buttonOptions.text);
QRect textRect = buttonOptions.rect;
textRect.setWidth(std::min(textRect.width(), textWd));
painter.drawItemText(textRect, Qt::TextSingleLine | Qt::TextShowMnemonic | Qt::AlignVCenter,
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