forked from len0rd/rockbox
tools: Fix up a bunch of compilation warnings
Plenty more to go. Change-Id: I3f6e6686d3e581bb97493d40dcb7df74650ba96c
This commit is contained in:
parent
d114429d88
commit
61d70de7f4
5 changed files with 47 additions and 47 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue