[Kst] branches/work/kst/portto4/kst
Barth Netterfield
netterfield at astro.utoronto.ca
Sat Mar 27 15:05:02 CET 2010
SVN commit 1108005 by netterfield:
Fix datamode.
M +0 -8 devel-docs/Kst2Specs/Bugs
M +0 -8 devel-docs/Kst2Specs/Wishlist
M +2 -1 src/libkstapp/plotrenderitem.cpp
--- branches/work/kst/portto4/kst/devel-docs/Kst2Specs/Bugs #1108004:1108005
@@ -14,14 +14,6 @@
--------------------
-When in data mode, the position of the data mode indicator and the
-values in the bottom status bar only update if you move the mouse. When
-live data is scrolling by and the mouse is still, the data mode
-indicator scrolls off the plot with the data (until you jiggle the
-mouse).
-
---------------------
-
Windows MEMleak
------------------
--- branches/work/kst/portto4/kst/devel-docs/Kst2Specs/Wishlist #1108004:1108005
@@ -77,12 +77,4 @@
--------------------
-3. Data mode no longer easily finds the point nearest the cursor.
-In kst 1.x, you could easily get datamode to locate points on a spike or
-other outlier on a dense curve, but now it actually seems to pick the
-point at the current x value, even if the cursor is significantly closer
-to a different point.
-
--------------------
-
in <ctrl> or <shift> zoom modes the line cursor should appear in all tied plots.
--- branches/work/kst/portto4/kst/src/libkstapp/plotrenderitem.cpp #1108004:1108005
@@ -583,11 +583,12 @@
qreal x, y;
QPointF matchedPoint;
qreal imageZ;
+ qreal dxPerPix = double(projectionRect().width())/double(rect().width());
foreach(RelationPtr relation, relationList()) {
if (Curve* curve = kst_cast<Curve>(relation)) {
//FIXME: set dxPerPix to something sensible!
- int index = curve->getIndexNearXY(position.x(), 0, position.y());
+ int index = curve->getIndexNearXY(position.x(), dxPerPix, position.y());
curve->point(index, x, y);
distance = fabs(position.y() - y);
if (bFirst || distance < minDistance) {
More information about the Kst
mailing list