Skip to content
Snippets Groups Projects

Revert "Removed deprecated function"

Merged Jan Möbius requested to merge revert-79a1c927 into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -84,7 +84,7 @@ void QtColorChooserButton::paintEvent(QPaintEvent *ev) {
initStyleOption(&buttonOptions);
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,
Loading