From 64a0861bc42b2667a562ce8fbf82081282241bbc Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Thu, 4 Apr 2019 21:12:09 +0000 Subject: fixed qt 5.13 warnings git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@8770 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/Ui/skinned/textscroller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/Ui/skinned/textscroller.cpp') diff --git a/src/plugins/Ui/skinned/textscroller.cpp b/src/plugins/Ui/skinned/textscroller.cpp index fe911ecd4..fbe0523d2 100644 --- a/src/plugins/Ui/skinned/textscroller.cpp +++ b/src/plugins/Ui/skinned/textscroller.cpp @@ -265,7 +265,7 @@ void TextScroller::preparePixmap(const QString &text, bool scrollable) if(scrollable) { int textWidth = m_bitmap ? QString(text + SCROLL_SEP).size() * 5 - : m_metrics->width(text + SCROLL_SEP); + : m_metrics->horizontalAdvance(text + SCROLL_SEP); int count = 150*m_ratio / textWidth + 1; int width = count * textWidth; QString fullText; -- cgit v1.2.3-13-gbd6f