diff options
author | Mitch Curtis <mitch.curtis@digia.com> | 2013-09-10 09:29:49 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-10 11:18:22 +0200 |
commit | 82e94c78906ec25767a5d8eb1a61af5dd17d529f (patch) | |
tree | d2ed5a87858b7c8fc7999755fa7a8c399b679ef8 /src/corelib/doc/src | |
parent | dc64fef6e47cbe93b80856a26b54f43d393f3597 (diff) |
Correct type mismatches sentence in signals and slots documentation.
Task-number: QTBUG-15994
Change-Id: I19581ae33313de44bcb6e5eb2c06fc9e507ad101
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'src/corelib/doc/src')
-rw-r--r-- | src/corelib/doc/src/objectmodel/signalsandslots.qdoc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/corelib/doc/src/objectmodel/signalsandslots.qdoc b/src/corelib/doc/src/objectmodel/signalsandslots.qdoc index 4e285f2966..b86aae830f 100644 --- a/src/corelib/doc/src/objectmodel/signalsandslots.qdoc +++ b/src/corelib/doc/src/objectmodel/signalsandslots.qdoc @@ -79,7 +79,9 @@ signal must match the signature of the receiving slot. (In fact a slot may have a shorter signature than the signal it receives because it can ignore extra arguments.) Since the signatures are - compatible, the compiler can help us detect type mismatches. + compatible, the compiler can help us detect type mismatches when + using the function pointer-based syntax. The string-based SIGNAL + and SLOT syntax will detect type mismatches at runtime. Signals and slots are loosely coupled: A class which emits a signal neither knows nor cares which slots receive the signal. Qt's signals and slots mechanism ensures that if you connect a |