From b6db1498536ce909dad79e85c00f0cec9a4e0340 Mon Sep 17 00:00:00 2001 From: Lauro Neto Date: Sat, 31 Oct 2009 14:50:56 -0300 Subject: Use isStream instead of hardcoding QDataStream Also added documentation --- doc/typesystem_specifying_types.rst | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/typesystem_specifying_types.rst b/doc/typesystem_specifying_types.rst index e94873834..ec16a59a6 100644 --- a/doc/typesystem_specifying_types.rst +++ b/doc/typesystem_specifying_types.rst @@ -170,7 +170,8 @@ value-type + hash-function="..." + stream="yes | no" /> The **name** attribute is the fully qualified C++ class name, such as @@ -178,6 +179,10 @@ value-type force or not specify if this type is copyable. The *optional* **hash-function** attribute informs the function name of a hash function for the type. + The *optional* attribute **stream** specifies whether this type will be able to + use externally defined operators, like QDataStream << and >>. If equals to **yes**, + these operators will be called as normal methods within the current class. + .. _object-type: @@ -193,7 +198,8 @@ object-type + hash-function="..." + stream="yes | no" /> The **name** attribute is the fully qualified C++ class name. If there is no @@ -202,6 +208,10 @@ object-type **copyable** and **hash-function** attributes are the same as described for :ref:`value-type`. + The *optional* attribute **stream** specifies whether this type will be able to + use externally defined operators, like QDataStream << and >>. If equals to **yes**, + these operators will be called as normal methods within the current class. + interface-type ^^^^^^^^^^^^^^ -- cgit v1.2.3