[Kst] branches/work/kst/portto4/kst/src/libkstapp

Adam Treat treat at kde.org
Thu Aug 30 21:34:20 CEST 2007


SVN commit 706571 by treat:

* Show all the points since we can do that now :)


 M  +1 -4      vectorcurverenderitem.cpp  


--- branches/work/kst/portto4/kst/src/libkstapp/vectorcurverenderitem.cpp #706570:706571
@@ -14,9 +14,6 @@
 #include <QDebug>
 #include <QGraphicsSceneMouseEvent>
 
-//FIXME how many?
-static int DESIRED_NUMBER_OF_POINTS_FOR_INITIAL_VIEW = 100;
-
 namespace Kst {
 
 VectorCurveRenderItem::VectorCurveRenderItem(const QString &name, PlotItem *parentItem)
@@ -57,7 +54,7 @@
                       relation->maxY());
 
     QTransform t;
-    qreal scaleFactor = 1.0 / (relation->sampleCount() / DESIRED_NUMBER_OF_POINTS_FOR_INITIAL_VIEW);
+    qreal scaleFactor = 1.0;
     t.scale(scaleFactor, scaleFactor);
 
     QRectF zoomRect = t.mapRect(vectorRect);


More information about the Kst mailing list