From e63cede6e245ca928f2407ed1eb5ee52fd38016e Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Wed, 19 Aug 2020 17:54:36 +0300 Subject: [PATCH] indent qt_plastique_draw_gradient() Signed-off-by: Ivailo Monev --- src/gui/styles/qplastiquestyle.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/gui/styles/qplastiquestyle.cpp b/src/gui/styles/qplastiquestyle.cpp index 801d41a07..e09e66311 100644 --- a/src/gui/styles/qplastiquestyle.cpp +++ b/src/gui/styles/qplastiquestyle.cpp @@ -730,7 +730,7 @@ static void qt_plastique_draw_gradient(QPainter *painter, const QRect &rect, con QRect r = rect; bool doPixmapCache = painter->deviceTransform().isIdentity() - && painter->worldMatrix().isIdentity(); + && painter->worldMatrix().isIdentity(); if (doPixmapCache && QPixmapCache::find(gradientName, cache)) { painter->drawPixmap(rect, cache); } else { @@ -738,7 +738,7 @@ static void qt_plastique_draw_gradient(QPainter *painter, const QRect &rect, con cache = QPixmap(rect.size()); cache.fill(Qt::transparent); p = new QPainter(&cache); - r = QRect(0, 0, rect.width(), rect.height()); + r = QRect(0, 0, rect.width(), rect.height()); } int x = r.center().x(); @@ -748,11 +748,11 @@ static void qt_plastique_draw_gradient(QPainter *painter, const QRect &rect, con p->fillRect(r, gradient); if (doPixmapCache) { - p->end(); - delete p; - painter->drawPixmap(rect, cache); + p->end(); + delete p; + painter->drawPixmap(rect, cache); QPixmapCache::insert(gradientName, cache); - } + } } } -- 2.11.0