Re: [Interest] QProgressBar::reset... when it doesn't

2015-05-20 Thread Matthew Woehlke
On 2015-05-20 00:41, Constantin Makshin wrote: > Doesn't look like a bug to me. The description of QProgressBar::reset() > says: >> The progress bar "rewinds" and shows no progress. > > Indeterminate progress bars have no progress/value by definition so > there's nothing to reset. I admit that set

Re: [Interest] QProgressBar::reset... when it doesn't

2015-05-19 Thread Constantin Makshin
Doesn't look like a bug to me. The description of QProgressBar::reset() says: > The progress bar "rewinds" and shows no progress. Indeterminate progress bars have no progress/value by definition so there's nothing to reset. I admit that setting a non-zero range just to "disable" a progress bar loo

[Interest] QProgressBar::reset... when it doesn't

2015-05-19 Thread Matthew Woehlke
I have a progress bar used to show that some task is executing. Some times I know how its actual progress, and sometimes I don't. When the task is done, I call QProgressBar::reset(). This is fine if I know the actual progress (value range is non-empty). When I don't (value range = [0, 0]), reset()