mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Show wait cursor when progress dialog is visible
p4#: 22152
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
#include <QPointer>
|
||||
#include <QProgressDialog>
|
||||
#include <QCoreApplication>
|
||||
#include <QApplication>
|
||||
#include <QThread>
|
||||
#include <assert.h>
|
||||
|
||||
@@ -56,6 +57,8 @@ namespace caf {
|
||||
ProgressInfo::ProgressInfo(size_t maxProgressValue, const QString& title)
|
||||
{
|
||||
ProgressInfoStatic::start(maxProgressValue, title);
|
||||
|
||||
QApplication::setOverrideCursor(QCursor(Qt::WaitCursor));
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -64,6 +67,8 @@ ProgressInfo::ProgressInfo(size_t maxProgressValue, const QString& title)
|
||||
ProgressInfo::~ProgressInfo()
|
||||
{
|
||||
ProgressInfoStatic::finished();
|
||||
|
||||
QApplication::restoreOverrideCursor();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user