ui: Fixed first character in search autocompletion list type string sometimes slightly cut

This commit is contained in:
Eberhard Graether
2019-04-23 09:34:34 +02:00
parent f9c2ff7c9f
commit ff9467ccae
@@ -274,7 +274,7 @@ void QtAutocompletionDelegate::paint(QPainter* painter, const QStyleOptionViewIt
int y = option.rect.top() + top2;
painter->fillRect(QRect(x - m_charWidth2, y, width + m_charWidth2 * 3, m_charHeight2 + 2), backgroundColor);
painter->drawText(QRect(x, y, width, m_charHeight2), Qt::AlignRight, type);
painter->drawText(QRect(x, y, width + m_charWidth2, m_charHeight2), Qt::AlignRight, type);
}
// draw bottom line