From d751f228d2725b6c01a73beb7f45f46173a3c24f Mon Sep 17 00:00:00 2001 From: Matthew Woehlke Date: Thu, 27 Sep 2007 03:42:17 +0000 Subject: [PATCH] use newfangled QLinearGradient instead of kdefx :-) svn path=/trunk/KDE/kdebase/workspace/; revision=717527 --- clients/quartz/quartz.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/clients/quartz/quartz.cpp b/clients/quartz/quartz.cpp index 787eb800c7..7af6198969 100644 --- a/clients/quartz/quartz.cpp +++ b/clients/quartz/quartz.cpp @@ -19,7 +19,6 @@ #include #include #include -#include #include #include #include @@ -269,7 +268,13 @@ void QuartzHandler::drawBlocks( QPixmap *pi, QPixmap &p, const QColor &c1, const px.begin( pi ); // Draw a background gradient first - KPixmapEffect::gradient(p, c1, c2, KPixmapEffect::HorizontalGradient); + QPainter gp(&p); + QLinearGradient grad(0, 0, p.width(), 0); + grad.setColorAt(0.0, c1); + grad.setColorAt(1.0, c2); + gp.setPen(Qt::NoPen); + gp.setBrush(grad); + gp.drawRect(p.rect()); int factor = (pi->height()-2)/4; int square = factor - (factor+2)/4;