mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Convenience method for cafProgressInfo to increment and set up next step.
This commit is contained in:
@@ -152,6 +152,16 @@ namespace caf {
|
||||
ProgressInfoStatic::incrementProgress();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
/// Convenience method for incrementing progress and setting step size and description for next step
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void ProgressInfo::incrementProgressAndUpdateNextStep(size_t nextStepSize, const QString& nextDescription)
|
||||
{
|
||||
incrementProgress();
|
||||
setNextProgressIncrement(nextStepSize);
|
||||
setProgressDescription(nextDescription);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
/// To make a certain operation span more of the progress bar than one tick,
|
||||
/// set the number of progress ticks that you want it to use before calling it.
|
||||
|
||||
Reference in New Issue
Block a user