From 36c2a9c51435739b51df7f95d1589bed7db7bcd7 Mon Sep 17 00:00:00 2001 From: Rym Bouabid Date: Wed, 6 Sep 2023 17:49:08 +0200 Subject: [PATCH] Revamp Mandelbrot example: Fix too long lines Fix code lines that do not respect the 100 characters limit rule. Task-number: QTBUG-108861 Pick-to: 6.6 6.5 Change-Id: Idbc148b77b52a359d972233c977bbf2ccf9fcd24 Reviewed-by: Dennis Oberst Reviewed-by: Ivan Solovev --- examples/corelib/threads/mandelbrot/mandelbrotwidget.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/corelib/threads/mandelbrot/mandelbrotwidget.cpp b/examples/corelib/threads/mandelbrot/mandelbrotwidget.cpp index ab555fe7dfd..a42a20c7c64 100644 --- a/examples/corelib/threads/mandelbrot/mandelbrotwidget.cpp +++ b/examples/corelib/threads/mandelbrot/mandelbrotwidget.cpp @@ -47,7 +47,8 @@ void MandelbrotWidget::paintEvent(QPaintEvent * /* event */) if (pixmap.isNull()) { painter.setPen(Qt::white); - painter.drawText(rect(), Qt::AlignCenter|Qt::TextWordWrap, tr("Rendering initial image, please wait...")); + painter.drawText(rect(), Qt::AlignCenter|Qt::TextWordWrap, + tr("Rendering initial image, please wait...")); //! [2] //! [3] return; //! [3] //! [4] @@ -101,7 +102,8 @@ void MandelbrotWidget::paintEvent(QPaintEvent * /* event */) painter.setPen(Qt::NoPen); painter.setBrush(QColor(0, 0, 0, 127)); helpHeight = (helpWidth/width()+1) * (helpHeight + 5); - painter.drawRect((width() - helpWidth) / 2 - 5, height()-helpHeight, helpWidth + 10, helpHeight); + painter.drawRect((width() - helpWidth) / 2 - 5, height()-helpHeight, helpWidth + 10, + helpHeight); painter.setPen(Qt::white); painter.drawText(rect(), Qt::AlignHCenter|Qt::AlignBottom|Qt::TextWordWrap, help);