qt6-bb10/tests/auto/widgets/dialogs
David Faure 3c6f333634 QProgressDialog: don't require setValue(0) to be called.
1) everyone forgets to do so (proof: tst_qnetworkaccessmanager_and_qprogressdialog.cpp
forgot too, which led to a valgrind warning, the elapsed timer was never started)

2) setValue(0) makes no sense if the progress dialog goes from 50 to 60,
or any other non-zero minimum value.

Fixed by starting the timer in the constructor (most code doesn't reuse
progress dialogs, so this fixes the most common case), and by also starting
the timer when calling setValue(minimum()) for well-behaved dialogs.
setValue(0) special case kept for compatibility.

Task-number: QTBUG-17427
Task-number: QTBUG-25316

[ChangeLog][Important Behavior Changes][QProgressDialog] The timer for estimating
the duration of the progress dialog is now started in the constructor and in
setValue(minimum()), as well as when calling setValue(0), as previously documented.

Done-with: Marc Mutz <marc.mutz@kdab.com>
Change-Id: Ia8f7fc677438749191b99074fc334eab652ea36f
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
2015-01-17 06:32:21 +01:00
..
qcolordialog Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qdialog Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qerrormessage Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qfiledialog tst_QFiledialog::completer(): Avoid directories starting with 'c'. 2014-10-03 19:01:43 +02:00
qfiledialog2 Enable tst_qfiledialog2 on OSX 2014-11-19 16:13:25 +01:00
qfilesystemmodel Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qfontdialog QStyleSheetStyle: Don't interfere with QFontDialog 2014-10-24 16:59:26 +02:00
qinputdialog Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qmessagebox Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qprogressdialog QProgressDialog: don't require setValue(0) to be called. 2015-01-17 06:32:21 +01:00
qsidebar Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qwizard Stabilize tst_qwizard. 2014-10-03 19:07:22 +02:00
dialogs.pro Replace win32-g++ with mingw scope 2014-01-17 12:08:24 +01:00