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:
parent
5d6188b39c
commit
c33ec790ed
@ -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.
|
||||
|
@ -52,6 +52,7 @@ public:
|
||||
void setProgressDescription(const QString& description);
|
||||
void setProgress(size_t progressValue);
|
||||
void incrementProgress();
|
||||
void incrementProgressAndUpdateNextStep(size_t nextStepSize, const QString& nextDescription);
|
||||
void setNextProgressIncrement(size_t nextStepSize);
|
||||
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user