MCPcopy Index your code
hub / github.com/PyQt5/PyQt / addChild

Function addChild

QtRemoteObjects/modelview/modelviewserver.py:108–123  ·  view source on GitHub ↗
(numChildren, nestingLevel)

Source from the content-addressed store, hash-verified

106
107
108def addChild(numChildren, nestingLevel):
109 result = []
110
111 if nestingLevel == 0:
112 return result
113
114 for i in range(numChildren):
115 child = QStandardItem(
116 "Child num {}, nesting level {}".format(i + 1, nestingLevel))
117
118 if i == 0:
119 child.appendRow(addChild(numChildren, nestingLevel - 1))
120
121 result.append(child)
122
123 return result
124
125
126if __name__ == '__main__':

Callers 1

modelviewserver.pyFile · 0.85

Calls 1

appendRowMethod · 0.80

Tested by

no test coverage detected