From edd29e76dcf456da3272fdd95472574671a32ae5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20M=C3=B6bius?= <moebius@cs.rwth-aachen.de>
Date: Thu, 6 Feb 2020 12:53:33 +0100
Subject: [PATCH] Revert "Removed deprecated function"

This reverts commit 93e243c4d36e911f6fd1b3ccb645619f6f1ed467
---
 widgets/codeeditor.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/widgets/codeeditor.cc b/widgets/codeeditor.cc
index 09e0b35..4fb2354 100644
--- a/widgets/codeeditor.cc
+++ b/widgets/codeeditor.cc
@@ -71,7 +71,7 @@ int CodeEditorWidget::lineNumberAreaWidth() {
     ++digits;
   }
 
-  int space = 3 + fontMetrics().horizontalAdvance(QLatin1Char('9')) * digits;
+  int space = 3 + fontMetrics().width(QLatin1Char('9')) * digits;
 
   return space;
 }
-- 
GitLab