minor update

This commit is contained in:
Roy Qu 2024-03-01 08:34:57 +08:00
parent 026a787ee5
commit e5d09a515c
1 changed files with 1 additions and 1 deletions

View File

@ -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);
} }