qt5base-lts/tests/auto
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
..
android Remove old test script & project. 2014-12-20 07:42:09 +01:00
bic/data
cmake Fix cmake test_moc_macro_target with namespace 2014-12-30 10:05:58 +01:00
compilerwarnings/data
concurrent Update license headers and add new license files 2014-09-24 12:26:19 +02:00
corelib Update QFileSelector to use QSysInfo better 2015-01-16 03:11:51 +01:00
dbus Remove the old QDBusConnection::sender functionality 2015-01-06 19:41:36 +01:00
gui Haiku: Make remaining auto tests compile on Haiku 2015-01-14 05:37:28 +01:00
guiapplauncher
installed_cmake
network Merge remote-tracking branch 'origin/5.4' into dev 2014-12-29 16:37:38 +01:00
opengl Change bugreports.qt-project.org -> bugreports.qt.io 2014-12-18 09:46:09 +01:00
other Haiku: Make remaining auto tests compile on Haiku 2015-01-14 05:37:28 +01:00
printsupport Change bugreports.qt-project.org -> bugreports.qt.io 2014-12-18 09:46:09 +01:00
shared Android: Keyboard doesn't hide from done button 2014-10-25 07:19:35 +02:00
sql Adjust DBMSType to DbmsType to follow conventions 2014-11-26 10:47:32 +01:00
testlib QDebug: pretty-print QStrings and QStringRefs 2015-01-11 03:40:38 +01:00
tools Introduce Q_ENUM and Q_FLAG macros 2015-01-13 17:52:14 +01:00
widgets QProgressDialog: don't require setValue(0) to be called. 2015-01-17 06:32:21 +01:00
xml Fix QDomDocument::importNode() crashing on null nodes 2014-10-07 23:08:18 +02:00
auto.pro Temporarily disable the QtDBus tests if the session bus isn't available 2014-12-23 12:22:56 +01:00
network-settings.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qtest-config.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
test.pl Update license headers and add new license files 2014-09-24 12:26:19 +02:00