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

List:       kde-commits
Subject:    KDE/kdebase/workspace/plasma/applets
From:       Aaron J. Seigo <aseigo () kde ! org>
Date:       2008-07-04 0:17:53
Message-ID: 1215130673.499881.5204.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 827868 by aseigo:

roundedRectangle is now in PaintUtils


 M  +2 -1      analog-clock/clock.cpp  
 M  +5 -4      tasks/windowtaskitem.cpp  


--- trunk/KDE/kdebase/workspace/plasma/applets/analog-clock/clock.cpp #827867:827868
@@ -46,6 +46,7 @@
 #include <KDialog>
 
 #include <plasma/dialog.h>
+#include <plasma/paintutils.h>
 #include <plasma/svg.h>
 #include <plasma/theme.h>
 
@@ -240,7 +241,7 @@
         p->setBrush(background);
 
         p->setRenderHint(QPainter::Antialiasing, true);
-        p->drawPath(Plasma::roundedRectangle(textRect.adjusted(-margin, -margin, \
margin, margin), margin)); +        \
p->drawPath(Plasma::PaintUtils::roundedRectangle(textRect.adjusted(-margin, -margin, \
margin, margin), margin));  p->setRenderHint(QPainter::Antialiasing, false);
 
         p->setPen(Plasma::Theme::defaultTheme()->color(Plasma::Theme::TextColor));
--- trunk/KDE/kdebase/workspace/plasma/applets/tasks/windowtaskitem.cpp \
#827867:827868 @@ -39,6 +39,7 @@
 #include <taskmanager/taskrmbmenu.h>
 
 #include "plasma/theme.h"
+#include "plasma/paintutils.h"
 #include "plasma/panelsvg.h"
 
 #include "tasks.h"
@@ -246,7 +247,7 @@
             QColor background = \
m_applet->colorScheme()->background(KColorScheme::ActiveBackground).color();  \
background.setAlphaF(hoverAlpha+0.2);  painter->setBrush(QBrush(background));
-            painter->drawPath(Plasma::roundedRectangle(option->rect, 6));
+            painter->drawPath(Plasma::PaintUtils::roundedRectangle(option->rect, \
6));  }
     } else if (m_flags & TaskIsMinimized) {
         if (itemBackground && itemBackground->hasElementPrefix("minimized")) {
@@ -278,7 +279,7 @@
                 painter->setBrush(background);
                 painter->setPen(Plasma::Theme::defaultTheme()->color(Plasma::Theme::BackgroundColor));
  
-                painter->drawPath(Plasma::roundedRectangle(option->rect, 6));
+                painter->drawPath(Plasma::PaintUtils::roundedRectangle(option->rect, \
6));  }
     //Default is a normal task
     } else {
@@ -295,7 +296,7 @@
             painter->setBrush(QBrush(background));
             painter->setPen(Plasma::Theme::defaultTheme()->color(Plasma::Theme::BackgroundColor));
  
-            painter->drawPath(Plasma::roundedRectangle(option->rect, 6));
+            painter->drawPath(Plasma::PaintUtils::roundedRectangle(option->rect, \
6));  }
     }
 
@@ -371,7 +372,7 @@
             painter->setBrush(background);
             painter->setPen(Plasma::Theme::defaultTheme()->color(Plasma::Theme::BackgroundColor));
  
-            painter->drawPath(Plasma::roundedRectangle(option->rect, 6));
+            painter->drawPath(Plasma::PaintUtils::roundedRectangle(option->rect, \
6));  }
     }
 }


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

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