aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Ui/skinned/textscroller.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/Ui/skinned/textscroller.cpp')
-rw-r--r--src/plugins/Ui/skinned/textscroller.cpp2
1 files changed, 1 insertions, 1 deletions
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;