From 00084a82f08ea72bafc6c002422c8f49bdeb1742 Mon Sep 17 00:00:00 2001 From: Arno Date: Wed, 28 Aug 2013 10:31:29 +0200 Subject: Add a progress dialog to FilesystemWidget Show a progress dialog when gathering data from the filesystem. --- smdirmodel.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'smdirmodel.h') diff --git a/smdirmodel.h b/smdirmodel.h index 192992a..02ad608 100644 --- a/smdirmodel.h +++ b/smdirmodel.h @@ -31,6 +31,7 @@ class SmDirModel : public SmTreeModel { virtual QVariant data(const QModelIndex &index, int role) const; virtual bool setData(const QModelIndex &index, const QVariant &value, int role); bool isDir(const QModelIndex &idx) const; + SmDataColletor *collector() const { return mCollector; } QDir dir() const; QFileInfo fileInfo(const QModelIndex &idx) const; QTimer *refresTimer() { return mRefreshTimer; } @@ -48,6 +49,8 @@ class SmDirModel : public SmTreeModel { signals: void needResize(); + void totalFiles(int numFiles); + void progress(); private: SmDirWatcher *mWatch; -- cgit v1.2.3-70-g09d2