diff options
Diffstat (limited to 'examples/corelib')
-rw-r--r-- | examples/corelib/threads/mandelbrot/mandelbrotwidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/corelib/threads/mandelbrot/mandelbrotwidget.cpp b/examples/corelib/threads/mandelbrot/mandelbrotwidget.cpp index fd0060d8a9..b3e4af5dc8 100644 --- a/examples/corelib/threads/mandelbrot/mandelbrotwidget.cpp +++ b/examples/corelib/threads/mandelbrot/mandelbrotwidget.cpp @@ -126,7 +126,7 @@ void MandelbrotWidget::paintEvent(QPaintEvent * /* event */) QString text = tr("Use mouse wheel or the '+' and '-' keys to zoom. " "Press and hold left mouse button to scroll."); QFontMetrics metrics = painter.fontMetrics(); - int textWidth = metrics.width(text); + int textWidth = metrics.horizontalAdvance(text); painter.setPen(Qt::NoPen); painter.setBrush(QColor(0, 0, 0, 127)); |