qt6-bb10/tests/auto/corelib/kernel
Dario Freddi e2df05f120 QTimer: add convenience singleShot methods for functors
This brings QTimer::singleShot on par with QObject::connect in
terms of the new Qt5 syntax. With this patch, it is now possible
to connect singleShot to a member pointer, a static function
pointer and a functor (with or without a context object).

The short code path for 0 msec is not yet implemented - it will
require further modifications to QMetaObject before it will be.

An additional SFINAE on the new singleShot overloads had to be
implemented to prevent tricking the compiler into believing
const char * might be a function pointer.

[ChangeLog][QtCore][QTimer] Implemented new style connect syntax,
including functors, in QTimer::singleShot

Task-number: QTBUG-26406
Change-Id: I31b2fa2c8369648030ec80b12e3ae10b92eb28b4
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
2014-05-28 11:45:48 +02:00
..
qcoreapplication Base tst_QGuiApplication on tst_QCoreApplication to increase GUI ED coverage 2013-10-01 18:00:17 +02:00
qeventdispatcher Don't send posted events from QWindowSystemInterface::sendWindowSystemEvents 2013-09-16 15:22:40 +02:00
qeventloop Updated corelib's unit tests to use QSignalSpy's functor constructor 2014-05-08 04:22:54 +02:00
qmath Fix qmath autotest for arm 2013-03-14 19:49:38 +01:00
qmetamethod QMetaMethod and QDBusMetaObject: Give public access to signal methods 2013-09-09 16:21:10 +02:00
qmetaobject Updated corelib's unit tests to use QSignalSpy's functor constructor 2014-05-08 04:22:54 +02:00
qmetaobjectbuilder Updated corelib's unit tests to use QSignalSpy's functor constructor 2014-05-08 04:22:54 +02:00
qmetaproperty Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qmetatype Build fix for auto-registration of Container<void*> 2014-04-23 21:40:36 +02:00
qmimedata tests: Fix some more old references and links to Nokia 2013-02-01 15:27:37 +01:00
qobject Merge remote-tracking branch 'origin/stable' into dev 2014-02-12 16:28:07 +01:00
qpointer don't erroneously claim that gui support is needed 2013-10-16 17:10:15 +02:00
qsharedmemory Skip unstable autotest 2013-03-12 18:13:37 +01:00
qsignalblocker tst_qsignalblocker: simplify test 2014-02-16 00:18:32 +01:00
qsignalmapper don't erroneously claim that gui support is needed 2013-10-16 17:10:15 +02:00
qsocketnotifier Updated corelib's unit tests to use QSignalSpy's functor constructor 2014-05-08 04:22:54 +02:00
qsystemsemaphore Add QSystemSemaphore::release() auto-tests 2013-11-28 20:33:56 +01:00
qtimer QTimer: add convenience singleShot methods for functors 2014-05-28 11:45:48 +02:00
qtranslator tst_qtranslator: Remove QT_DISABLE_DEPRECATED_BEFORE=0 2013-04-12 07:20:05 +02:00
qvariant QVariant: Convert automatically from enum types to integral types. 2013-11-08 16:45:26 +01:00
qwineventnotifier remove qt_windows.h include from qwineventnotifier.h 2013-10-29 19:59:17 +01:00
kernel.pro Re-add missing test to kernel.pro 2014-04-02 03:07:12 +02:00