MCPcopy Create free account
hub / github.com/KDE/kdiff3 / setRangeTransformation

Method setRangeTransformation

src/progress.cpp:282–291  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

280// 0 to 1 will be transformed to dMin to dMax instead.
281// Requirement: 0 < dMin < dMax < 1
282void 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
293void ProgressDialog::setSubRangeTransformation(double dMin, double dMax)
294{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected