From 03da01423d4624d9c963c84f9f30eca0c1b82d73 Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Thu, 28 Sep 2017 14:42:16 +0300 Subject: [PATCH] Use a valid value for setWeight --- src/ImageItem.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ImageItem.cc b/src/ImageItem.cc index e84a2a9f..5e95f8b2 100644 --- a/src/ImageItem.cc +++ b/src/ImageItem.cc @@ -216,7 +216,7 @@ ImageItem::paintEvent(QPaintEvent *event) QString elidedText = metrics.elidedText(text_, Qt::ElideRight, width_ - 10); - font.setWeight(500); + font.setWeight(80); painter.setFont(font); painter.setPen(QPen(QColor("white"))); painter.drawText(QPoint(5, height_ - fontHeight / 2), elidedText);