[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    Re: Please stop using kdefx (call for help)
From:       Matthew Woehlke <mw_triad () users ! sourceforge ! net>
Date:       2007-09-27 2:30:34
Message-ID: fdf4ka$hbs$1 () sea ! gmane ! org
[Download RAW message or body]

Sebastian Sauer wrote:
> Matthew Woehlke wrote:
> 
>>   /koffice/kexi/widget/utils/kexigradientwidget.cpp (3 hits)
>>   /koffice/kexi/widget/utils/kexigradientwidget.h (8 hits)
> 
> they are disabled aka don't got compiled in trunk
>  
>> ...and of course kugar, and for good measure one lone KPixmapEffect hit
>> at koffice/kexi/kexiutils/utils.cpp, line 313.
> 
> here we would just need a replacment to let a pixmap fade to a color || just 
> disable that (imho not critical) functionality for now.

QPainter... set the brush to a color with alphaF = 0.33 and fillRect the 
pixmap. Roughly:

QPainter p(&pm);
QColor c = <the color>;
c.setAlphaF(0.33);
p.fillRect(pm.rect())

-- 
Matthew
"Passion is inversely proportional to the amount of real information 
available." -- Benford's Law of Controversy
http://en.wikipedia.org/wiki/Benford%27s_law_of_controversy

_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic