qt6-bb10/tests/auto/corelib
Kent Hansen dac23b9a57 Add QMetaMethod::fromSignal() function
Given a member function that's a signal, returns the corresponding
QMetaMethod. Inspired by the implementation of the template-based
QObject::connect().

The primary use case for this function is to have an effective and
exact (not subject to shadowing) way of checking whether a known
signal was connected to in reimplementations of
QObject::connectNotify(QMetaMethod), avoiding string comparisons.
Example:

void MyObject::connectNotify(const QMetaMethod &signal)
{
    if (signal == QMetaMethod::fromSignal(&MyObject::mySignal)) {
        // Someone connected to mySignal ...
    }
}

Change-Id: I5e4de434275fe543c004d569dcaa9ceda3442f03
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
2012-04-27 10:37:02 +02:00
..
animation Fix deadlock in QPropertyAnimation 2012-03-07 12:48:49 +01:00
codecs Merge remote-tracking branch 'origin/master' into api_changes 2012-04-16 12:04:34 +02:00
global Merge master into api_changes 2012-03-27 19:22:48 +02:00
io Ensure that QUrl::{to,from}LocalPath encode/decode properly 2012-04-26 03:15:22 +02:00
itemmodels Remove insignification from qabstractitemmodel test on Mac OS X. 2012-04-24 19:36:55 +02:00
json Don't crash when comparing values containing empty arrays/objects 2012-04-11 16:09:06 +02:00
kernel Add QMetaMethod::fromSignal() function 2012-04-27 10:37:02 +02:00
mimetypes Make comment() work in the C locale too. 2012-03-22 13:29:50 +01:00
plugin Remove insignification from QPluginLoader and QFactoryLoader tests. 2012-04-17 16:28:46 +02:00
statemachine Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
thread Add a remainingTime() method to the public interface of the QTimer class 2012-04-03 15:10:05 +02:00
tools Make QTimeLine test significant. 2012-04-26 09:27:25 +02:00
xml Fix MSVC warnings in tests. 2012-04-02 16:56:48 +02:00
corelib.pro Import QMimeType / QMimeDatabase into QtCore. 2012-02-18 22:19:43 +01:00