summaryrefslogtreecommitdiff
path: root/doc/src/declarative
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2011-07-29 14:14:09 +1000
committerAaron Kennedy <aaron.kennedy@nokia.com>2011-07-29 14:14:09 +1000
commit29bc712a2086781b88ff8b66e6f9c3bf964d6b14 (patch)
treeff37d16d9a3c586215e5e39e1274f9e03920cc93 /doc/src/declarative
parent9b996fcb591715981e2b13cfbce4ea285747dc0f (diff)
downloadqt4-tools-29bc712a2086781b88ff8b66e6f9c3bf964d6b14.tar.gz
Doc
Diffstat (limited to 'doc/src/declarative')
-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 b35ddc59e1..70b77b2455 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().