qt5base-lts/tests/auto/corelib/kernel
Bradley T. Hughes 2bbf9befd8 Add Qt::TimerType argument to QAbstractEventDispatcher::registerTimer()
... and deprecate the old registerTimer() functions. The new pure-
virtual registerTimer() breaks source-compatibility. Subclasses cannot
be instantiated anymore, since the pure virtual function signature has
changed.

QAbstractEventDispatcher::TimerInfo is no longer a QPair. It is now a
struct with timerId, interval, and timerType members. This is a source
incompatibility that should only affect subclasses of
QAbstractEventDispatcher, which will need to pass 3 arguments to the
TimerInfo constructor instead of 2. If the subclass used QPair<int,int>
instead of the TimerInfo typedef, the QPair<int,int> declarations will
need to be replaced with TimerInfo.

Call the new registerTimer() function with the type from
QObject::startTimer(). Change all subclasses of QAbstractEventDispatcher
to reimplement the new virtual function. The type argument is unused at
the momemnt, except to ensure that registeredTimers() returns the type
each timer was registered with. Implementations for the various
dispatchers will be done in separate commits.

Author: Thiago Macieira <thiago.macieira@nokia.com>
Change-Id: Ia22697e0ab0847810c5d162ef473e0e5a17a904b
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2012-01-02 10:44:00 +01:00
..
qcoreapplication Add Qt::TimerType argument to QAbstractEventDispatcher::registerTimer() 2012-01-02 10:44:00 +01:00
qeventloop Cleanup corelib autotests. 2011-12-28 04:48:11 +01:00
qitemmodel Cleanup corelib autotests. 2011-12-28 04:48:11 +01:00
qmath Cleanup corelib autotests 2011-11-11 02:45:05 +01:00
qmetaobject Cleanup corelib autotests. 2011-12-28 04:48:11 +01:00
qmetaobjectbuilder qtbase tests: Fix some warnings 2011-11-21 09:58:23 +01:00
qmetaproperty Cleanup corelib autotests 2011-11-11 02:45:05 +01:00
qmetatype Allow QMetaType to register information about movability 2011-12-22 13:20:40 +01:00
qmimedata Fix linking of autotests on Windows. 2011-11-29 12:28:30 +01:00
qobject Finish removing Qt3 support 2011-12-23 11:59:11 +01:00
qpointer Remove QMetaObject guards and deprecate QPointer. 2011-12-10 16:11:48 +01:00
qsignalmapper Remove TESTED_CLASS/TESTED_FILES comments from tests. 2011-12-06 02:19:25 +01:00
qsocketnotifier Cleanup corelib autotests. 2011-12-28 04:48:11 +01:00
qtimer Remove TESTED_CLASS/TESTED_FILES comments from tests. 2011-12-06 02:19:25 +01:00
qtranslator Remove TESTED_CLASS/TESTED_FILES comments from tests. 2011-12-06 02:19:25 +01:00
qvariant Fix movablity of QVariant. 2011-12-22 16:09:34 +01:00
qwineventnotifier Remove TESTED_CLASS/TESTED_FILES comments from tests. 2011-12-06 02:19:25 +01:00
kernel.pro Move QAbstractItemModel into a separate directory. 2011-12-13 02:23:42 +01:00