deprecated--

svn path=/trunk/KDE/kdebase/workspace/; revision=516259
This commit is contained in:
Laurent Montel 2006-03-06 13:26:07 +00:00
parent c73394f756
commit 938178b594
2 changed files with 3 additions and 3 deletions

View file

@ -114,7 +114,7 @@ static void make_button_fx(const QColorGroup &g, QPixmap *pix, bool light=false)
*btnSource = btnSource->convertDepth(32);
if(light)
btnColor = btnColor.light(120);
btnColor.hsv(&destH, &destS, &destV);
btnColor.getHsv(&destH, &destS, &destV);
QImage btnDest(14, 15, 32);
unsigned int *srcData = (unsigned int *)btnSource->bits();
@ -122,7 +122,7 @@ static void make_button_fx(const QColorGroup &g, QPixmap *pix, bool light=false)
QColor srcColor;
for(i=0; i < btnSource->width()*btnSource->height(); ++i){
srcColor.setRgb(srcData[i]);
srcColor.hsv(&srcH, &srcS, &srcV);
srcColor.getHsv(&srcH, &srcS, &srcV);
srcColor.setHsv(destH, destS, srcV);
destData[i] = srcColor.rgb();
}

View file

@ -32,7 +32,7 @@
QColor hsvRelative(const QColor& baseColor, int relativeH, int relativeS, int relativeV)
{
int h, s, v;
baseColor.hsv(&h, &s, &v);
baseColor.getHsv(&h, &s, &v);
h += relativeH;
s += relativeS;