1
0
Fork 0
forked from len0rd/rockbox

tools: Fix up a bunch of compilation warnings

Plenty more to go.

Change-Id: I3f6e6686d3e581bb97493d40dcb7df74650ba96c
This commit is contained in:
Solomon Peachy 2024-12-03 20:27:45 -05:00
parent d114429d88
commit 61d70de7f4
5 changed files with 47 additions and 47 deletions

View file

@ -65,14 +65,14 @@ int CodeEditor::lineNumberAreaWidth()
++digits;
}
int space = 3 + fontMetrics().width(QLatin1Char('9')) * digits;
int space = 3 + fontMetrics().horizontalAdvance(QLatin1Char('9')) * digits;
return space;
}
void CodeEditor::updateLineNumberAreaWidth(int /* newBlockCount */)
{
{
setViewportMargins(lineNumberAreaWidth(), 0, 0, 0);
}
@ -267,4 +267,3 @@ void CodeEditor::lineNumberAreaPaintEvent(QPaintEvent *event)
++blockNumber;
}
}