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

Peter Kümmel syntheticpp at gmx.net
Tue Sep 28 00:58:04 CEST 2010


On 27.09.2010 10:28, Brisset, Nicolas wrote:
>> But aren't we in the data mode when we are not in the layout mode?
> No, the data mode is an option which makes sense in zoom mode, where the
> point closest to the cursor and lying on a curve is shown overlaid on
> the plot, with its coordinates in the status bar. It is this funny
> second "cursor" jumping around. 
> It is useful to determine exactly the position of a max, for instance. 
> 
> If it is not clear, I can send you a screenshot.

But the old code looked like this:

void MainWindow::setLayoutMode(bool layoutMode) {
  View *v = tabWidget()->currentView();
  Q_ASSERT(v);

  if (layoutMode) {
    v->setViewMode(View::Layout);
  } else {
    v->setViewMode(View::Data);
  }



So I think not seeing the jumping point in non-layout mode is a bug.

Peter


More information about the Kst mailing list