From 561fa6639355c4d5016bd4d8f1c1747727addb41 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Mon, 8 Jul 2019 22:20:02 +0200 Subject: [PATCH] Replace QFontMetrics::width with horizontalAdvance --- src/core/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/mainwindow.cpp b/src/core/mainwindow.cpp index d0d877620..b772cd4f7 100644 --- a/src/core/mainwindow.cpp +++ b/src/core/mainwindow.cpp @@ -713,7 +713,7 @@ MainWindow::MainWindow(Application *app, SystemTrayIcon *tray_icon, OSD *osd, co connect(ui_->analyzer, SIGNAL(WheelEvent(int)), SLOT(VolumeWheelEvent(int))); // Statusbar widgets - ui_->playlist_summary->setMinimumWidth(QFontMetrics(font()).width("WW selected of WW tracks - [ WW:WW ]")); + ui_->playlist_summary->setMinimumWidth(QFontMetrics(font()).horizontalAdvance("WW selected of WW tracks - [ WW:WW ]")); ui_->status_bar_stack->setCurrentWidget(ui_->playlist_summary_page); connect(ui_->multi_loading_indicator, SIGNAL(TaskCountChange(int)), SLOT(TaskCountChanged(int)));