summaryrefslogtreecommitdiffstats
path: root/doc/src
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2011-07-29 04:14:09 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2011-07-29 04:14:09 (GMT)
commit29bc712a2086781b88ff8b66e6f9c3bf964d6b14 (patch)
treeff37d16d9a3c586215e5e39e1274f9e03920cc93 /doc/src
parent9b996fcb591715981e2b13cfbce4ea285747dc0f (diff)
downloadQt-29bc712a2086781b88ff8b66e6f9c3bf964d6b14.zip
Qt-29bc712a2086781b88ff8b66e6f9c3bf964d6b14.tar.gz
Qt-29bc712a2086781b88ff8b66e6f9c3bf964d6b14.tar.bz2
Doc
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/declarative/qtbinding.qdoc6
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/src/declarative/qtbinding.qdoc b/doc/src/declarative/qtbinding.qdoc
index b35ddc5..70b77b2 100644
--- a/doc/src/declarative/qtbinding.qdoc
+++ b/doc/src/declarative/qtbinding.qdoc
@@ -507,12 +507,16 @@ the \l {Extending QML Functionalities using C++} reference documentation for
more information.
-\section2 Using enumeration values as signal parameters
+\section2 Using enumeration values as signal and method parameters
C++ signals may pass enumeration values as signal parameters to QML, providing that the enumeration
and the signal are declared within the same class, or that the enumeration value is one of those declared
in the \l {Qt}{Qt Namespace}.
+Likewise, invokable C++ methods parameters may be enumeration values providing that the enumeration and
+the method is declared within the same class, or that the enumeration value is one of thise declared in the
+\l {Qt}{Qt Namespace}.
+
Additionally, if a C++ signal with an enum parameter should be connectable to a QML function using the
\l {Connecting signals to methods and other signals}{connect()} function, the enum type must be
registered using qRegisterMetaType().