minor update
This commit is contained in:
parent
026a787ee5
commit
e5d09a515c
|
@ -197,7 +197,7 @@ void LineNumberTextEditor::lineNumberAreaPaintEvent(QPaintEvent *event)
|
||||||
painter.setPen(mLineNumberAreaCurrentLine);
|
painter.setPen(mLineNumberAreaCurrentLine);
|
||||||
else
|
else
|
||||||
painter.setPen(mLineNumberAreaForeground);
|
painter.setPen(mLineNumberAreaForeground);
|
||||||
int y=top+std::max(0,bottom-top-fontMetrics().lineSpacing());
|
// int y=top+std::max(0,bottom-top-fontMetrics().lineSpacing());
|
||||||
painter.drawText(5, top, lineNumberArea->width()-10, fontMetrics().height(),
|
painter.drawText(5, top, lineNumberArea->width()-10, fontMetrics().height(),
|
||||||
Qt::AlignRight, number);
|
Qt::AlignRight, number);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue