[mythtv] [PATCH] Fix background origin on transparent widgets

Kevin Kuphal kuphal at dls.net
Fri Jul 16 23:54:51 EDT 2004

Isaac Richards wrote:

>On Friday 16 July 2004 11:14 pm, Kevin Kuphal wrote:
>>This patch fixes the background origin on "transparent" widgets (most
>>noteably visible on the "Pre-scaling" window) so that the widget
>>background is offest to match it's parent background.
>>Without this the background 0,0 is set to the widget 0,0 and it looks
>>funny because the parent has the same background and now you have two
>>identical pixmaps overlapping (parent background and widget
>>background).  After the patch, the widget background is offset to match
>>the parent so the transparency looks complete.
>I wanted the pre-scaling window (and other popups) to have a different offset.
It still does, but what this addresses is the label inside the window 
that reads "Pre-scaling".  That label had the background and it was 
offset wrong so as not to appear transparent.  With that window 
specifically, after applying this patch, it now appears properly 
transparent within the Pre-scaling window and the Pre-scaling window 
still has a different background than the main window. 

I believe it affects only the desired widgets because the modification 
takes place inside ThemeWidget which doesn't affect the pop-up/parent 
relationship because those are based on QFrame.  (I don't profess to be 
an expert here but it seems to me that's what's going on both in my 
basic undrestanding of the code and what I saw on the screen).


More information about the mythtv-dev mailing list