diff options
author | Arno <arno@disconnect.de> | 2015-08-05 04:04:49 +0200 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2015-08-05 04:18:09 +0200 |
commit | 49b943474c4ac39ee5f0f2e900fddd1253a84366 (patch) | |
tree | df68a1d2a09877b01c31d365acee7df44be9ccdd /pictureswidget.cpp | |
parent | b3ccbde0d3e540453b80709002cae0630172f1dc (diff) | |
download | SheMov-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 'pictureswidget.cpp')
-rw-r--r-- | pictureswidget.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pictureswidget.cpp b/pictureswidget.cpp index d27d801..59007ca 100644 --- a/pictureswidget.cpp +++ b/pictureswidget.cpp @@ -21,6 +21,7 @@ #include <QSettings> #include <QActionGroup> #include <QHash> +#include <QApplication> #include "pictureswidget.h" #include "picfilesmodel.h" @@ -170,10 +171,12 @@ PictureView::PictureView(QWidget *parent) : SmTreeView("ui/picheaderpos", parent void PictureView::mappingChanged(int pMapId){ mModel->setMapping(pMapId); + qApp->setOverrideCursor(Qt::WaitCursor); mModel->populate(); for(int i = 0; i < PicFilesModel::NumFields; ++i){ resizeColumnToContents(i); } + qApp->restoreOverrideCursor(); } void PictureView::deletePics(){ |