summaryrefslogtreecommitdiffstats
path: root/smdirmodel.cpp
diff options
context:
space:
mode:
authorArno <arno@disconnect.de>2015-08-05 04:04:49 +0200
committerArno <arno@disconnect.de>2015-08-05 04:18:09 +0200
commit49b943474c4ac39ee5f0f2e900fddd1253a84366 (patch)
treedf68a1d2a09877b01c31d365acee7df44be9ccdd /smdirmodel.cpp
parentb3ccbde0d3e540453b80709002cae0630172f1dc (diff)
downloadSheMov-49b943474c4ac39ee5f0f2e900fddd1253a84366.tar.gz
SheMov-49b943474c4ac39ee5f0f2e900fddd1253a84366.tar.bz2
SheMov-49b943474c4ac39ee5f0f2e900fddd1253a84366.zip
Remove progress dialog and use Qt::WaitCursor instead
Get rid of the progress Dialog in the filesystem widget and replace it with Qt::WaitCursor. While at it, show the waitcursor in the picture widget, too. Also remove the annoying warnings from ImageMagick by defining the missing constants.
Diffstat (limited to 'smdirmodel.cpp')
-rw-r--r--smdirmodel.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/smdirmodel.cpp b/smdirmodel.cpp
index 73ae0c5..32bc241 100644
--- a/smdirmodel.cpp
+++ b/smdirmodel.cpp
@@ -135,11 +135,6 @@ void SmDirModel::setDir(const QString &dir){
mWatch->setDir(mCurrentDir);
}
-void SmDirModel::setDirNoProgress(const QString &dir){
- mCurrentDir = dir;
- mWatch->setDir(mCurrentDir, false);
-}
-
void SmDirModel::dirEvent(const QList<QVariant> &data, int e){
if(e == SmDirWatcher::Added){
/* for some reason SmTreeModel::addRow() doesn't work,
@@ -177,7 +172,7 @@ void SmDirModel::readSettings(){
interval *= 1000;
mRefreshTimer->setInterval(interval);
mRefreshTimer->start();
- connect(mRefreshTimer, SIGNAL(timeout()), this, SLOT(refreshNoProgress()));
+ connect(mRefreshTimer, SIGNAL(timeout()), this, SLOT(refresh()));
}
bool expensive = s.value("ui/expensiveops", true).toBool();
mWatch->setExpensiveOps(expensive);
@@ -187,13 +182,8 @@ void SmDirModel::refresh(){
setDir(mCurrentDir);
}
-void SmDirModel::refreshNoProgress(){
- setDirNoProgress(mCurrentDir);
-}
-
void SmDirModel::populate(SmTreeItem *root){
setRoot(root);
- //mWatch->startAsyncJobs();
emit needResize();
}