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

List:       kde-commits
Subject:    playground/graphics
From:       Pino Toscano <pino () kde ! org>
Date:       2010-01-12 15:08:03
Message-ID: 1263308883.608217.16833.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1073625 by pino:

don't double qualify constructor calls


 M  +4 -4      darkroom/src/kcurve.cc  
 M  +2 -2      krita-exp/widgets/kis_curve_widget.cpp  
 M  +1 -1      krita-exp/widgets/kis_curve_widget_p.h  


--- trunk/playground/graphics/darkroom/src/kcurve.cc #1073624:1073625
@@ -154,7 +154,7 @@
         p.fillRect(rect(), palette().background());
 
     // Draw grid separators.
-    p.setPen(QPen::QPen(Qt::gray, 1, Qt::SolidLine));
+    p.setPen(QPen(Qt::gray, 1, Qt::SolidLine));
     p.drawLine(wWidth/3, 0, wWidth/3, wHeight);
     p.drawLine(2*wWidth/3, 0, 2*wWidth/3, wHeight);
     p.drawLine(0, wHeight/3, wWidth, wHeight/3);
@@ -162,7 +162,7 @@
 
     // Draw curve.
     double curvePrevVal = getCurveValue(0.0);
-    p.setPen(QPen::QPen( palette().text(), 1, Qt::SolidLine));
+    p.setPen(QPen( palette().text(), 1, Qt::SolidLine));
     for (x = 0 ; x < wWidth ; x++)
     {
         double curveX;
@@ -189,13 +189,13 @@
 
             if (i == m_grab_point_index)
             {
-                p.setPen(QPen::QPen(Qt::red, 3, Qt::SolidLine));
+                p.setPen(QPen(Qt::red, 3, Qt::SolidLine));
                 p.drawEllipse(QRectF(curveX * wWidth + 0.5 - 2,
                     wHeight - 2 - curveY * wHeight + 0.5, 4, 4));
             }
             else
             {
-                p.setPen(QPen::QPen(Qt::red, 1, Qt::SolidLine));
+                p.setPen(QPen(Qt::red, 1, Qt::SolidLine));
                 p.drawEllipse(QRectF(curveX * wWidth + 0.5 - 3,
                     wHeight - 3 - curveY * wHeight + 0.5, 6, 6));
             }
--- trunk/playground/graphics/krita-exp/widgets/kis_curve_widget.cpp #1073624:1073625
@@ -313,11 +313,11 @@
             curveY = d->m_points.at(i).y();
 
             if (i == d->m_grab_point_index) {
-                p.setPen(QPen::QPen(Qt::red, 3, Qt::SolidLine));
+                p.setPen(QPen(Qt::red, 3, Qt::SolidLine));
                 p.drawEllipse(QRectF(curveX * wWidth - 2,
                                      wHeight - 2 - curveY * wHeight, 4, 4));
             } else {
-                p.setPen(QPen::QPen(Qt::red, 1, Qt::SolidLine));
+                p.setPen(QPen(Qt::red, 1, Qt::SolidLine));
                 p.drawEllipse(QRectF(curveX * wWidth - 3,
                                      wHeight - 3 - curveY * wHeight, 6, 6));
             }
--- trunk/playground/graphics/krita-exp/widgets/kis_curve_widget_p.h #1073624:1073625
@@ -446,7 +446,7 @@
      * That is not mandatory but desirable
      */
 
-    p.setPen(QPen::QPen(Qt::gray, 1, Qt::SolidLine));
+    p.setPen(QPen(Qt::gray, 1, Qt::SolidLine));
     p.drawLine(div4_round(wWidth), 0, div4_round(wWidth), wHeight);
     p.drawLine(div2_round(wWidth), 0, div2_round(wWidth), wHeight);
     p.drawLine(div4_round(3*wWidth), 0, div4_round(3*wWidth), wHeight);
[prev in list] [next in list] [prev in thread] [next in thread] 

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