[Kst] kdeextragear-2/kst/kst

Andrew Walker arwalker at sumusltd.com
Thu Dec 9 20:21:15 CET 2004


CVS commit by arwalker: 

Add three more point types.


  M +24 -0     kstpoint.cpp   1.8
  M +1 -1      kstpoint.h   1.7


--- kdeextragear-2/kst/kst/kstpoint.cpp  #1.7:1.8
@@ -85,4 +85,28 @@ void KstPoint::draw(QPainter *p, int x, 
       p->drawLine(x, y-s, x, y+s);
       break;
+    case 8:
+      p->drawLine(x-s, y-s, x+s, y+s);
+      p->drawLine(x-s, y+s, x+s, y-s);
+      p->drawLine(x-s, y, x+s, y);
+      p->drawLine(x, y-s, x, y+s);
+      break;    
+    case 9:
+      {
+        QPointArray pts(3);
+
+        pts.putPoints( 0, 3, x-s, y-s, x, y+s, x+s, y-s );
+        p->setBrush(QBrush::SolidPattern);
+        p->drawPolygon(pts);
+      }
+      break;
+    case 10:
+      {
+        QPointArray pts(3);
+
+        pts.putPoints( 0, 3, x-s, y+s, x, y-s, x+s, y+s );
+        p->setBrush(QBrush::SolidPattern);
+        p->drawPolygon(pts);
+      }
+      break;
   }
   p->setBrush(QBrush::NoBrush);

--- kdeextragear-2/kst/kst/kstpoint.h  #1.6:1.7
@@ -24,5 +24,5 @@
  */
 
-#define KSTPOINT_MAXTYPE 8
+#define KSTPOINT_MAXTYPE 11
 
 class KstPoint {





More information about the Kst mailing list