deprecated--
svn path=/trunk/KDE/kdebase/workspace/; revision=516259
This commit is contained in:
parent
c73394f756
commit
938178b594
2 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue