Use a valid value for setWeight

remotes/origin/HEAD
Konstantinos Sideris 7 years ago
parent cdb4c55bb2
commit 03da01423d
  1. 2
      src/ImageItem.cc

@ -216,7 +216,7 @@ ImageItem::paintEvent(QPaintEvent *event)
QString elidedText = metrics.elidedText(text_, Qt::ElideRight, width_ - 10); QString elidedText = metrics.elidedText(text_, Qt::ElideRight, width_ - 10);
font.setWeight(500); font.setWeight(80);
painter.setFont(font); painter.setFont(font);
painter.setPen(QPen(QColor("white"))); painter.setPen(QPen(QColor("white")));
painter.drawText(QPoint(5, height_ - fontHeight / 2), elidedText); painter.drawText(QPoint(5, height_ - fontHeight / 2), elidedText);

Loading…
Cancel
Save