The progressbar goes from 0 to 1 usually. By supplying a subrange transformation the subCurrent-values 0 to 1 will be transformed to dMin to dMax instead. Requirement: 0 < dMin < dMax < 1
| 280 | // 0 to 1 will be transformed to dMin to dMax instead. |
| 281 | // Requirement: 0 < dMin < dMax < 1 |
| 282 | void ProgressDialog::setRangeTransformation(double dMin, double dMax) |
| 283 | { |
| 284 | if(m_progressStack.empty()) |
| 285 | return; |
| 286 | |
| 287 | ProgressLevelData& pld = m_progressStack.back(); |
| 288 | pld.m_dRangeMin = dMin; |
| 289 | pld.m_dRangeMax = dMax; |
| 290 | pld.m_current = 0; |
| 291 | } |
| 292 | |
| 293 | void ProgressDialog::setSubRangeTransformation(double dMin, double dMax) |
| 294 | { |
nothing calls this directly
no outgoing calls
no test coverage detected