diff options
author | Arno <arno@disconnect.de> | 2019-09-08 23:10:12 +0200 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2019-09-08 23:10:12 +0200 |
commit | 4a9778e33faeb615283218e2a037d30045399263 (patch) | |
tree | 937a426de19cca40c0875f44202adc46b1e69030 | |
parent | b6a01de2de5a8b06f80395b8794ccb8de183311b (diff) | |
download | BeetPlayer-master.tar.gz BeetPlayer-master.tar.bz2 BeetPlayer-master.zip |
FontMetrics.with seems to be obsolete.
-rw-r--r-- | collectionfavoritesview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/collectionfavoritesview.cpp b/collectionfavoritesview.cpp index b948c41..b235c3a 100644 --- a/collectionfavoritesview.cpp +++ b/collectionfavoritesview.cpp @@ -40,7 +40,7 @@ void CollectionFavoritesView::populate(){ favQ2.exec(); favQ2.next(); QFontMetrics fm(QFont("courier")); - QString songTitle = fm.elidedText(favQ1.value(2).toString(), Qt::ElideRight, fm.width('X') * 28); + QString songTitle = fm.elidedText(favQ1.value(2).toString(), Qt::ElideRight, fm.horizontalAdvance('X') * 28); QString songText = QString("%1 - %2 - %3").arg(favQ1.value(0).toString(), -25).arg(songTitle, -30).arg(favQ1.value(1).toString()); curSong->setText(songText); curSong->setIcon(songIcon); |