build should work now

This commit is contained in:
Marc Wäckerlin
2015-05-10 16:30:03 +00:00
parent e4e2595654
commit 51b258cb7a
21 changed files with 846 additions and 164 deletions

24
examples/filewatch.hxx Normal file
View File

@@ -0,0 +1,24 @@
/*! @file
@id $Id$
*/
// 1 2 3 4 5 6 7 8
// 45678901234567890123456789012345678901234567890123456789012345678901234567890
#include <qbrowserlib/filestorage.hxx>
#include<QtCore/QDebug>
class TestFileWatch: public QObject {
Q_OBJECT;
public:
TestFileWatch(QString file): _storage(file) {
assert(connect(&_storage, SIGNAL(changed()), SLOT(changed())));
}
private Q_SLOTS:
void changed() {
qDebug()<<"File has changed: "<<_storage.read().join("; ");
}
private:
FileStorage _storage;
};