Commit 89b02a39 authored by Waqar Ahmed's avatar Waqar Ahmed Committed by Christoph Cullmann
Browse files

Ensure line numbers are VCenter aligned

parent 85daa39b
......@@ -89,7 +89,7 @@ void SPHtmlDelegate::paintMatchItem(QPainter *p, const QStyleOptionViewItem &opt
// line numbers
const QBrush lineNumCol = selected ? m_curLineNumColor : m_lineNumColor;
p->setPen(QPen(lineNumCol, 1));
p->drawText(iconBorderRect.adjusted(2., 0., -2., 0.), lineCol);
p->drawText(iconBorderRect.adjusted(2., 0., -2., 0.), Qt::AlignVCenter, lineCol);
// draw the line number area separator line
p->setPen(QPen(m_borderColor, 1));
......
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