From 744c94e9a1197068457cc52dde57472cb89e1819 Mon Sep 17 00:00:00 2001 From: Arno Date: Sun, 17 Mar 2013 02:18:31 +0100 Subject: Make SmDirModel/SmDirWatcher do something I think I got it working! It does what I want it to do :) --- smdirmodel.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'smdirmodel.h') diff --git a/smdirmodel.h b/smdirmodel.h index 5e1dceb..690efac 100644 --- a/smdirmodel.h +++ b/smdirmodel.h @@ -18,6 +18,8 @@ #include class SmDirWatcher; +class QTimer; +class SmTreeItem; class SmDirModel : public SmTreeModel { Q_OBJECT @@ -34,15 +36,17 @@ class SmDirModel : public SmTreeModel { public slots: void setDir(const QString &dir); + void dirEvent(const QString &file, int e); - private: + private slots: void populate(); + + private: const QList fileData(const QFileInfo &fi) const; SmDirWatcher *mWatch; QStringList mHeaders; QString mCur; - - + QTimer *mRunTimer; }; #endif // SMDIRMODEL_H -- cgit v1.2.3-70-g09d2