diff options
author | Sandro S. Andrade <sandroandrade@kde.org> | 2013-11-24 01:11:24 -0300 |
---|---|---|
committer | Sandro S. Andrade <sandroandrade@kde.org> | 2013-11-24 05:06:50 +0100 |
commit | c0607c35be4b405eee7aa8a5311715e0ae1cd466 (patch) | |
tree | 8eb86ebf419c94012c1560a92c5e3d728b209ec1 /scripts/templates | |
parent | 2086ee4b7b49adc17efcc4809cfa63ef4aa68383 (diff) |
Fix QtSADuseProfile module documentation
Change-Id: I0fd53fbaa7ef581d3d007a74dd48a9da5a8a74f7
Reviewed-by: Sandro S. Andrade <sandroandrade@kde.org>
Diffstat (limited to 'scripts/templates')
-rw-r--r-- | scripts/templates/qclass.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/templates/qclass.cpp b/scripts/templates/qclass.cpp index 43040fb7..024778f8 100644 --- a/scripts/templates/qclass.cpp +++ b/scripts/templates/qclass.cpp @@ -188,11 +188,13 @@ QModelingElement *Q${namespace}${className}::clone() const } [%- IF attribute.findnodes("upperValue").findvalue("@value") == "*" %] +[%- IF documentation != "" %] /*! Adds \a ${qtAttribute} to ${PLURALFORM(qtAttribute, attribute)}. \sa ${PLURALFORM(qtAttribute, attribute)}(), remove${attributeName}() */ +[%- END %] void Q${namespace}${className}::add${attributeName}(${qtType.remove("QSet<").remove("QList<").replace(">", "").replace('\* $', '*')}${qtAttribute}) { // This is a [% IF readOnly == "" || readOnly == "false" %]read-write[% ELSE %]read-only[% END %][% IF derived == "true" %] derived[% END %][% IF derivedUnion == "true" %] union[% END %] [% IF association != "" %]association end[% ELSE %]property[% END %] @@ -270,11 +272,13 @@ void Q${namespace}${className}::add${attributeName}(${qtType.remove("QSet<").rem } } +[%- IF documentation != "" %] /*! Removes \a ${qtAttribute} from ${PLURALFORM(qtAttribute, attribute)}. \sa ${PLURALFORM(qtAttribute, attribute)}(), add${attributeName}() */ +[%- END %] void Q${namespace}${className}::remove${attributeName}(${qtType.remove("QSet<").remove("QList<").replace(">", "").replace('\* $', '*')}${qtAttribute}) { // This is a [% IF readOnly == "" || readOnly == "false" %]read-write[% ELSE %]read-only[% END %][% IF derived == "true" %] derived[% END %][% IF derivedUnion == "true" %] union[% END %] [% IF association != "" %]association end[% ELSE %]property[% END %] @@ -350,9 +354,11 @@ void Q${namespace}${className}::remove${attributeName}(${qtType.remove("QSet<"). } [%- ELSE %] +[%- IF documentation != "" %] /*! Adjusts ${PLURALFORM(qtAttribute, attribute)} to \a ${qtAttribute}. */ +[%- END %] void Q${namespace}${className}::set${attributeName.remove("^Is")}([% IF !qtType.match('\*$') %]${qtType.trim} [% ELSE %]${qtType}[% END %]${qtAttribute}) { // This is a [% IF readOnly == "" || readOnly == "false" %]read-write[% ELSE %]read-only[% END %][% IF derived == "true" %] derived[% END %][% IF derivedUnion == "true" %] union[% END %] [% IF association != "" %]association end[% ELSE %]property[% END %] |