From e5d09a515cd5902bd94094ad0be345df29f036bb Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Fri, 1 Mar 2024 08:34:57 +0800 Subject: [PATCH] minor update --- RedPandaIDE/widgets/linenumbertexteditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RedPandaIDE/widgets/linenumbertexteditor.cpp b/RedPandaIDE/widgets/linenumbertexteditor.cpp index c7362df4..0760b840 100644 --- a/RedPandaIDE/widgets/linenumbertexteditor.cpp +++ b/RedPandaIDE/widgets/linenumbertexteditor.cpp @@ -197,7 +197,7 @@ void LineNumberTextEditor::lineNumberAreaPaintEvent(QPaintEvent *event) painter.setPen(mLineNumberAreaCurrentLine); else 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(), Qt::AlignRight, number); }