From cbd0bc1fbcbe48811d2e80df5cae9c9c523863a0 Mon Sep 17 00:00:00 2001 From: Aaron Kennedy Date: Fri, 29 Jul 2011 14:17:11 +1000 Subject: Doc Change-Id: I46c4ec5f41e5a1074d8c01f883409ee439bd09e2 Task-number: QTBUG-19741 Reviewed-on: http://codereview.qt.nokia.com/2368 Reviewed-by: Aaron Kennedy --- doc/src/declarative/qtbinding.qdoc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/src/declarative/qtbinding.qdoc b/doc/src/declarative/qtbinding.qdoc index 0d9928753e..5c125b25d3 100644 --- a/doc/src/declarative/qtbinding.qdoc +++ b/doc/src/declarative/qtbinding.qdoc @@ -511,12 +511,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++ method parameters may be enumeration values providing +that the enumeration and the method are declared within the same class, or that +the enumeration value is one of those 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{QML Signal and Handler Event System#Connecting Signals to Methods and Signals}{connect()} function, the enum type must be registered using qRegisterMetaType(). -- cgit v1.2.3