Use a valid value for setWeight

This commit is contained in:
Konstantinos Sideris 2017-09-28 14:42:16 +03:00
parent cdb4c55bb2
commit 03da01423d

View file

@ -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);