mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Progress: optionally call QApplication::processEvents on progress updates
Add ProgressInfoEventProcessingBlocker Co-authored-by: Kristian Bendiksen kristian.bendiksen@gmail.com
This commit is contained in:
@@ -80,9 +80,10 @@ void RicWellPathsImportOsduFeature::onActionTriggered( bool isChecked )
|
||||
{
|
||||
std::vector<RiuWellImportWizard::WellInfo> importedWells = wellImportwizard.importedWells();
|
||||
|
||||
caf::ProgressInfo progress( importedWells.size(), "Importing wells from OSDU", false, true );
|
||||
int colorIndex = 0;
|
||||
std::vector<RimOsduWellPath*> newWells;
|
||||
caf::ProgressInfoEventProcessingBlocker blocker;
|
||||
caf::ProgressInfo progress( importedWells.size(), "Importing wells from OSDU", false, true );
|
||||
int colorIndex = 0;
|
||||
std::vector<RimOsduWellPath*> newWells;
|
||||
for ( const auto& w : importedWells )
|
||||
{
|
||||
auto wellPath = new RimOsduWellPath;
|
||||
|
||||
@@ -174,6 +174,7 @@ bool RimWellPathCollection::loadDataAndUpdate()
|
||||
return count;
|
||||
};
|
||||
|
||||
caf::ProgressInfoEventProcessingBlocker blocker;
|
||||
caf::ProgressInfo progress( allWellPaths().size() + countWellLogs( allWellPaths() ) + 2, "Reading well paths from file", false, true );
|
||||
|
||||
readWellPathFormationFiles();
|
||||
|
||||
Reference in New Issue
Block a user