On Mon, Jul 21, 2008 at 02:43:52PM -0400, rgheck wrote: > This time with the attachment.
This is the wrong program as the bug is circumvented. The right program is http://bugzilla.lyx.org/attachment.cgi?id=2721&action=view which I attach here for convenience. -- Enrico
#include <QDateTime> #include <QFileInfo> #include <QDebug> #include <QtCore> int main ( int argc, char **argv ) { QFileInfo fi("/tmp/testfile"); QDateTime t = fi.lastModified(); qDebug() << "Initial time " << t.toString("hh:mm:ss.zzz"); while (1) { fi.refresh(); QDateTime tc = fi.lastModified(); if (tc != t) { qDebug() << "Current time " << tc.toString("hh:mm:ss.zzz"); t = tc; } } }