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. --- smdirwatcher.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'smdirwatcher.cpp') diff --git a/smdirwatcher.cpp b/smdirwatcher.cpp index 3143212..2b03179 100644 --- a/smdirwatcher.cpp +++ b/smdirwatcher.cpp @@ -154,7 +154,9 @@ void SmDataColletor::run(){ SmTreeItem * SmDataColletor::populate(const QString &dir){ SmTreeItem *retval = new SmTreeItem(mNumFields); QDir d = QDir(dir); + emit totalFiles(d.entryInfoList().size()); foreach(QFileInfo fi, d.entryInfoList()){ + emit progress(); if(fi.fileName() == "."){ continue; } -- cgit v1.2.3-70-g09d2