Warn when using QBasicTimer::start() incorrectly
authorBradley T. Hughes <bradley.hughes@nokia.com>
Wed, 4 Jan 2012 11:22:33 +0000 (12:22 +0100)
committerQt by Nokia <qt-info@nokia.com>
Thu, 5 Jan 2012 07:42:23 +0000 (08:42 +0100)
commitd8d4cc39629fbd498981f5b78a8412f1cbba2372
treedb4791db58f97f7894cf2bbef40d14dbb01d464c
parent1fdfc2abfe1fa26b86028934d4853432e25b4655
Warn when using QBasicTimer::start() incorrectly

Previously, QObject::startTimer() would warn when called from
QBasicTimer::start() if there was no event dispatcher for the object's
thread. QBasicTimer::start() should output a similar warning when there
is no event dispatcher for the current thread.

Change-Id: I1152f73216c3551c252a7a6995defebc9e1506c8
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
src/corelib/kernel/qbasictimer.cpp