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

List:       kde-devel
Subject:    Re: Oxygen gradients and QStyle...
From:       Hugo Pereira Da Costa <hugo () oxygen-icons ! org>
Date:       2010-03-28 18:04:37
Message-ID: 4BAF9A35.7080802 () oxygen-icons ! org
[Download RAW message or body]

On 03/28/2010 11:41 AM, Thomas Lübking wrote:
> Am Sunday 28 March 2010 schrieb Hugo Pereira Da Costa:
>    
>> Ideally, there might be a possibility to store the gradient in Window
>> palettes brush (rather than re-implementing paintEvent), but I had not
>> time to look into that yet ...
>>      
> DON'T!
> myWindow->palette().color(QPalette::Window) would be Qt::black then.
>
> You could implement it in PE_Widget and check for a toplevel widget when the
> function is called (bespin does so) and/or call that function from the
> eventfilter (in case you don't want to set windows styled)
>    


Thanks for the tip, Thomas

That probably saved me hours of useless coding.
Will see what happens with PE_Widget

Calling from eventfilter is what I'd like to avoid (cause this is what 
makes it unaccessible from the external world)
Me back to digging into bespin ;-)

Hugo

> Thomas
>
>    
>>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe<<
>>>        

 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

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

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