From 49b943474c4ac39ee5f0f2e900fddd1253a84366 Mon Sep 17 00:00:00 2001 From: Arno Date: Wed, 5 Aug 2015 04:04:49 +0200 Subject: 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. --- pictureswidget.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pictureswidget.cpp') diff --git a/pictureswidget.cpp b/pictureswidget.cpp index d27d801..59007ca 100644 --- a/pictureswidget.cpp +++ b/pictureswidget.cpp @@ -21,6 +21,7 @@ #include #include #include +#include #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(){ -- cgit v1.2.3-70-g09d2