[Kst] kdeextragear-2/kst/kst

Andrew Walker arwalker at sumusltd.com
Wed Dec 17 02:09:19 CET 2003


CVS commit by arwalker: 

Added triangular data point style


  M +10 -0     kstpoint.cpp   1.3
  M +1 -1      kstpoint.h   1.3


--- kdeextragear-2/kst/kst/kstpoint.cpp  #1.2:1.3
@@ -69,4 +69,14 @@ void KstPoint::draw(QPainter *p, int x, 
     p->drawEllipse(x-s, y-s, 2*s+1, 2*s+1);
     break;
+  case 4:
+    p->drawLine(x-s, y-s, x+s, y-s);
+    p->drawLine(x-s, y-s, x, y+s);
+    p->drawLine(x, y+s, x+s, y-s);
+    break;
+  case 5:
+    p->drawLine(x-s, y+s, x+s, y+s);
+    p->drawLine(x-s, y+s, x, y-s);
+    p->drawLine(x, y-s, x+s, y+s);
+    break;
   }
   p->setBrush(QBrush::NoBrush);

--- kdeextragear-2/kst/kst/kstpoint.h  #1.2:1.3
@@ -25,5 +25,5 @@
  */
 
-#define KSTPOINT_MAXTYPE 3
+#define KSTPOINT_MAXTYPE 5
 
 class KstPoint {





More information about the Kst mailing list