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

List:       kde-commits
Subject:    kdeartwork/styles/dotnet
From:       Maks Orlovich <maksim () kde ! org>
Date:       2004-08-01 3:14:12
Message-ID: 20040801031412.14BC19985 () office ! kde ! org
[Download RAW message or body]

CVS commit by orlovich: 

-Unbreak the case of pushbuttons w/icons and pixmap which hopefully noone uses
-Fix radiobutton masking


  M +5 -1      dotnet.cpp   2.12


--- kdeartwork/styles/dotnet/dotnet.cpp  #2.11:2.12
@@ -548,5 +548,7 @@ void dotNETstyle::drawPrimitive(Primitiv
                         p->setPen(color1);
                         p->setBrush(color1);
+                        p->translate(r.x(), r.y());
                         p->drawPolygon(QPointArray(28, outline));
+                        p->translate(-r.x(), -r.y());
                         break;
                 }
@@ -1085,5 +1087,7 @@ void dotNETstyle::drawControl(ControlEle
                                                 p->drawPixmap(r.x() + \
pb->isDefault() ? 8 : 4 , r.y() + r.height() / 2 - pixmap.height() / 2, pixmap);  }
-                        } else if (pb->pixmap() && !pb->text()) {
+                        }
+
+                        if (pb->pixmap() && !pb->text()) {
                                 QRect pr(0, 0, pb->pixmap()->width(), \
pb->pixmap()->height());  pr.moveCenter(r.center());


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

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