Commit ecef605d authored by Jens Bache-Wiig's avatar Jens Bache-Wiig
Browse files

Fixes: Fix incorrect text elliding on combo box

Task:     Reported by b_lindeijer
Details:
We incorrectly reduced the text rect for combos.
parent 4cec3bd5
......@@ -773,7 +773,7 @@ void ManhattanStyle::drawControl(ControlElement element, const QStyleOption *opt
customPal.setBrush(QPalette::All, QPalette::ButtonText, QColor(0, 0, 0, 70));
QRect rect = editRect.adjusted(1, 0, -8, 0);
QRect rect = editRect.adjusted(1, 0, 0, 0);
QString text = option->fontMetrics.elidedText(cb->currentText, Qt::ElideRight, rect.width());
drawItemText(painter, rect.translated(0, 1),
visualAlignment(option->direction, Qt::AlignLeft | Qt::AlignVCenter),
......
Markdown is supported
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