[Kst] kst 2.0 : No auto update?

Peter Kümmel syntheticpp at gmx.net
Sun Aug 15 22:56:13 CEST 2010


Am Sonntag, den 15.08.2010, 15:44 +0100 schrieb Peter Milne:
> Data source is a DirFile that gradually grows in time.
> 
> 
> Plotting this with kst 1.8 (FC), the plot updates at a respectable rate.
> 
> Plotting with kst 2.0 results in a static plot, FC or MS-Win, it's 
> necessary to press the RELOAD button to get a new update.
> 
> Is this a feature that hasn't been activated yet in kst 2.0?.
> 
> The parameter Settings|General|Update-ms looks promising, but doesn't 
> seem to have an effect.
> 
> What should drive this update - is it a timer in KST or perhaps a event 
> (like inotify) from the OS?.
> 

Looks like a bug. 

There is a QFileSystemWatcher which should trigger an update,
DirFileSource::init() in dirfilesource.cpp:

_watcher = new QFileSystemWatcher();
if (_fieldList.count() > 1) {
QString filePath = _dirfile->ReferenceFilename();
_watcher->addPath(filePath);
}
connect(_watcher, SIGNAL(fileChanged ( const QString & )), this, SLOT(checkUpdate()));
connect(_watcher, SIGNAL(directoryChanged ( const QString & )), this, SLOT(checkUpdate()));

Maybe Barth knows immediately what's going wrong.

Peter



More information about the Kst mailing list