summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGeir Vattekar <geir.vattekar@nokia.com>2011-08-22 14:04:39 (GMT)
committerGeir Vattekar <geir.vattekar@nokia.com>2011-08-22 14:04:39 (GMT)
commitbf24e842393c73c6745311c37130117d871f1958 (patch)
tree5312c88a99c6c6b0868d74b0c56e381f585e18d3 /src
parent670f460fab6a386407c07281cf6417ccf6430970 (diff)
downloadQt-bf24e842393c73c6745311c37130117d871f1958.zip
Qt-bf24e842393c73c6745311c37130117d871f1958.tar.gz
Qt-bf24e842393c73c6745311c37130117d871f1958.tar.bz2
Doc: Fixed doc bug in QMetaObject
Task-number: QTBUG-14067 Reviewed-by: David Boddie
Diffstat (limited to 'src')
-rw-r--r--src/corelib/kernel/qmetaobject.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/corelib/kernel/qmetaobject.cpp b/src/corelib/kernel/qmetaobject.cpp
index b4c37f4..8597fa3 100644
--- a/src/corelib/kernel/qmetaobject.cpp
+++ b/src/corelib/kernel/qmetaobject.cpp
@@ -432,9 +432,10 @@ int QMetaObject::constructorCount() const
}
/*!
- Returns the number of methods in this class, including the number of
- properties provided by each base class. These include signals and slots
- as well as normal member functions.
+ Returns the number of methods known to the meta-object system in this class,
+ including the number of properties provided by each base class. These
+ include signals and slots as well as member functions declared with the
+ Q_INVOKABLE macro.
Use code like the following to obtain a QStringList containing the methods
specific to a given class:
@@ -1245,6 +1246,10 @@ bool QMetaObject::invokeMethod(QObject *obj,
tag(), and an access() specifier. You can use invoke() to invoke
the method on an arbitrary QObject.
+ A method will only be registered with the meta-object system if it
+ is a slot, a signal, or declared with the Q_INVOKABLE macro.
+ Constructors can also be registered with Q_INVOKABLE.
+
\sa QMetaObject, QMetaEnum, QMetaProperty, {Qt's Property System}
*/