From 0216d9b57b229e99cb2e87a03a35dc2ffaa649ce Mon Sep 17 00:00:00 2001 From: Kristian Bendiksen Date: Wed, 14 Aug 2024 16:55:18 +0200 Subject: [PATCH] Remove QApplication::processEvents uses. --- Fwk/AppFwk/cafUserInterface/cafProgressInfo.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Fwk/AppFwk/cafUserInterface/cafProgressInfo.cpp b/Fwk/AppFwk/cafUserInterface/cafProgressInfo.cpp index 59c4706441..d05a49b0be 100644 --- a/Fwk/AppFwk/cafUserInterface/cafProgressInfo.cpp +++ b/Fwk/AppFwk/cafUserInterface/cafProgressInfo.cpp @@ -541,7 +541,7 @@ void ProgressInfoStatic::start( ProgressInfo& progressInfo, dialog->setValue( static_cast( currentTotalProgress() ) ); dialog->setLabelText( currentComposedLabel() ); } - QCoreApplication::processEvents( QEventLoop::ExcludeUserInputEvents ); + // QCoreApplication::processEvents( QEventLoop::ExcludeUserInputEvents ); // if (progressDialog()) progressDialog()->repaint(); } @@ -559,7 +559,7 @@ void ProgressInfoStatic::setProgressDescription( const QString& description ) { dialog->setLabelText( currentComposedLabel() ); } - QCoreApplication::processEvents( QEventLoop::ExcludeUserInputEvents ); + // QCoreApplication::processEvents( QEventLoop::ExcludeUserInputEvents ); // if (progressDialog()) progressDialog()->repaint(); } @@ -605,7 +605,7 @@ void ProgressInfoStatic::setProgress( size_t progressValue ) dialog->setValue( totalProgress ); } - QCoreApplication::processEvents( QEventLoop::ExcludeUserInputEvents ); + // QCoreApplication::processEvents( QEventLoop::ExcludeUserInputEvents ); // if (progressDialog()) progressDialog()->repaint(); } @@ -687,7 +687,7 @@ void ProgressInfoStatic::finished() dialog->setLabelText( currentComposedLabel() ); } - QCoreApplication::processEvents( QEventLoop::ExcludeUserInputEvents ); + // QCoreApplication::processEvents( QEventLoop::ExcludeUserInputEvents ); // If we are finishing the last level, clean up if ( maxProgressStack_v.empty() )