diff --git a/src/rootBg.C b/src/rootBg.C index 7437eaec..da598c11 100644 --- a/src/rootBg.C +++ b/src/rootBg.C @@ -29,6 +29,7 @@ #include #include #include +#include #include #include #include @@ -246,12 +247,15 @@ void RootPixmap::generateBackground(bool shade, double r, double g, double b) if ( orMode == Portrait ) { pmDesktop.resize( 20, QApplication::desktop()->height() ); - pmDesktop.gradientFill( color2, color1, true, numColors ); + KPixmapEffect::gradient(pmDesktop, color2, color1, + KPixmapEffect::VerticalGradient, numColors ); } else { pmDesktop.resize( QApplication::desktop()->width(), 20 ); - pmDesktop.gradientFill( color2, color1, false, numColors ); + KPixmapEffect::gradient(pmDesktop, color2, color1, + KPixmapEffect::HorizontalGradient, + numColors); } if (shade) shadePixmap(&pmDesktop,r,g,b);