From 9b0b4cbd087eb1315a51d609ea2abc75e12bf083 Mon Sep 17 00:00:00 2001 From: Arno Date: Fri, 22 Nov 2019 13:34:39 +0100 Subject: Fix deprecation warnings --- helper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'helper.cpp') diff --git a/helper.cpp b/helper.cpp index 4b42f0e..627aec7 100644 --- a/helper.cpp +++ b/helper.cpp @@ -300,7 +300,7 @@ namespace Helper { Duration dur(where); QFont font("Monospace", 10); QFontMetrics fm(font); - int width = fm.width(dur.toString()); + int width = fm.horizontalAdvance(dur.toString()); int height = fm.height(); QPainter p(&retval); p.setBrush(QBrush(QColor(255, 255, 255, 70))); -- cgit v1.2.3-70-g09d2