Coding Style: Mention preference for Qt5-style connects

Change-Id: I7bcae5c87a6588b1817a1f8038471eebeb5ba2b9
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
This commit is contained in:
hjk
2015-01-05 14:10:50 +01:00
committed by hjk
parent c2e23b6fe2
commit ab1ae75ba7
+6 -5
View File
@@ -895,11 +895,12 @@
\li Every QObject subclass must have a Q_OBJECT macro, even if it
does not have signals or slots, if it is intended to be used
with qobject_cast<>. See also \l{Casting}.
\li Normalize the arguments for signals and slots
(see \l{http://qt-project.org/doc/qt-4.8/qmetaobject.html#normalizedSignature}{QMetaObject::normalizedSignature}
inside connect statements
to safely make signal and slot lookup a few cycles faster.
You can use $QTDIR/util/normalize to normalize existing code.
\li Prefer Qt5-style \c{connect()} calls over Qt4-style.
\li When using Qt4-style \c{connect()} calls, normalize the arguments
for signals and slots inside connect statements to safely make
signal and slot lookup a few cycles faster. You can use
$QTDIR/util/normalize to normalize existing code. For more
information, see \l{http://qt-project.org/doc/qt-4.8/qmetaobject.html#normalizedSignature}{QMetaObject::normalizedSignature}.
\endlist
\section2 File Headers