Warning, /sdk/doxyqml/tests/functional/basic/input/Nesting.qml is written in an unsupported language. File is not indexed.
0001 /*
0002 * Header bla
0003 */
0004 import QtQuick 1.1
0005 import QtQuick.Controls 1.4 as QtQuick1
0006
0007 /**
0008 * Parent item.
0009 */
0010 Item {
0011
0012 /**
0013 * A child with an ID.
0014 */
0015 Item {
0016
0017 id: childItem
0018
0019 /** An attribute. */
0020 componentAttribute: value
0021
0022 /** Another attribute. */
0023 component.attribute: anotherValue
0024
0025 /**
0026 * A function in a component.
0027 * @param type:string str The string to append 'a' to.
0028 * @return type:string The new string.
0029 */
0030 function itemFunction(str) {
0031 return str + "a";
0032 }
0033 }
0034
0035 /**
0036 * Another child with an ID.
0037 */
0038 Item {
0039
0040 id: childItem2
0041
0042 ShowChildComponent {
0043
0044 id: customComponentChildItem
0045
0046 /** An attribute. */
0047 componentAttribute: value
0048
0049 /** Another attribute. */
0050 component.attribute: anotherValue
0051
0052 /**
0053 * A function in a component.
0054 * @param type:string str The string to append 'a' to.
0055 * @return type:string The new string.
0056 */
0057 function showFunction(str) {
0058 return str + "a";
0059 }
0060 }
0061
0062 HideCustomComponent {
0063
0064 /** An attribute. */
0065 componentAttribute: value
0066
0067 /** Another attribute. */
0068 component.attribute: anotherValue
0069
0070 /**
0071 * A function in a component.
0072 * @param type:string str The string to append 'a' to.
0073 * @return type:string The new string.
0074 */
0075 function hideFunction(str) {
0076 return str + "a";
0077 }
0078 }
0079 }
0080
0081 /**
0082 * A child without an ID.
0083 */
0084 Item {
0085
0086 /** Attribute not shown for component with no ID. */
0087 attributeNotShown: value
0088
0089 /**
0090 * A grandchild with an ID.
0091 */
0092 ShowChildComponent {
0093
0094 id: showCustomComponentChildItem
0095
0096 /** An attribute. */
0097 componentAttribute: value
0098
0099 /** Another attribute. */
0100 component.attribute: anotherValue
0101
0102 /**
0103 * A function in a component.
0104 * @param type:string str The string to append 'a' to.
0105 * @return type:string The new string.
0106 */
0107 function showFunction(str) {
0108 return str + "a";
0109 }
0110 }
0111 }
0112
0113 /**
0114 * A comment for aSplitView
0115 */
0116 QtQuick1.SplitView {
0117
0118 id: aSplitView
0119
0120 Layout.fillHeight: true
0121 Layout.fillWidth: true
0122
0123 /**
0124 * A comment for aRectangle.
0125 */
0126 Rectangle {
0127
0128 id: aRectangle
0129 }
0130 }
0131 }