summaryrefslogtreecommitdiffstats
path: root/examples/widgets/widgets/codeeditor/codeeditor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/widgets/widgets/codeeditor/codeeditor.cpp')
-rw-r--r--examples/widgets/widgets/codeeditor/codeeditor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/widgets/widgets/codeeditor/codeeditor.cpp b/examples/widgets/widgets/codeeditor/codeeditor.cpp
index 69974e72be..7e56a75294 100644
--- a/examples/widgets/widgets/codeeditor/codeeditor.cpp
+++ b/examples/widgets/widgets/codeeditor/codeeditor.cpp
@@ -79,7 +79,7 @@ int CodeEditor::lineNumberAreaWidth()
++digits;
}
- int space = 3 + fontMetrics().width(QLatin1Char('9')) * digits;
+ int space = 3 + fontMetrics().horizontalAdvance(QLatin1Char('9')) * digits;
return space;
}