summaryrefslogtreecommitdiffstats
path: root/helper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'helper.cpp')
-rw-r--r--helper.cpp2
1 files changed, 1 insertions, 1 deletions
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)));