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

List:       kde-commits
Subject:    kdebase/kicker/buttons
From:       Maks Orlovich <mo002j () mail ! rochester ! edu>
Date:       2002-01-10 1:52:53
[Download RAW message or body]


kdebase/kicker/buttons panelbuttonbase.cpp,1.2,1.3
Author: orlovich
Thu Jan 10 01:52:43 UTC 2002


Modified Files:
         panelbuttonbase.cpp
Log Message:


        // No background pixmap to use
-       _bg = backgroundPixmap() ? *backgroundPixmap() :  QPixmap();
+       _bg = (backgroundPixmap() && backgroundPixmap()->size()==size()) ? \
*backgroundPixmap() :  QPixmap();

When a style on polishing a palette sets a pixmap background brush, Qt sets is as the \
erasePixmap [which is what the olbsoleted backgroundPixmap() returns] as well. Since \
that brush is likely not the same size as the kicker button, drawing it will either \
result in random noise on edges, or will get it cut off - neither of which is nice.

The only applet using the backgroundPixmap seems to be the clock, and it's fine with \
the change.


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

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