summaryrefslogtreecommitdiffstats
path: root/smdirwatcher.cpp
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2013-08-28 10:31:29 +0200
committerArno <am@disconnect.de>2013-08-28 10:31:29 +0200
commit00084a82f08ea72bafc6c002422c8f49bdeb1742 (patch)
tree0c69d4de4ff173b658f4cc514f1dcda1d19a2f9b /smdirwatcher.cpp
parent1ee897fbb51cb431cba7690076a29a3ca2ddc1a7 (diff)
downloadSheMov-00084a82f08ea72bafc6c002422c8f49bdeb1742.tar.gz
SheMov-00084a82f08ea72bafc6c002422c8f49bdeb1742.tar.bz2
SheMov-00084a82f08ea72bafc6c002422c8f49bdeb1742.zip
Add a progress dialog to FilesystemWidget1.2.0
Show a progress dialog when gathering data from the filesystem.
Diffstat (limited to 'smdirwatcher.cpp')
-rw-r--r--smdirwatcher.cpp2
1 files changed, 2 insertions, 0 deletions
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;
}