MCPcopy Create free account
hub / github.com/KDE/kdevelop / generateChilds

Function generateChilds

kdevplatform/project/tests/projectmodelperformancetest.cpp:37–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35using KDevelop::Path;
36
37void generateChilds( ProjectBaseItem* parent, int count, int depth )
38{
39 for( int i = 0; i < 10; i++ ) {
40 if( depth > 0 ) {
41 auto* item = new ProjectFolderItem( QStringLiteral( "f%1" ).arg( i ), parent );
42 generateChilds( item, count, depth - 1 );
43 } else {
44 new ProjectFileItem( QStringLiteral( "f%1" ).arg( i ), parent );
45 }
46 }
47}
48
49ProjectModelPerformanceTest::ProjectModelPerformanceTest(QWidget* parent )
50 : QWidget(parent)

Callers 3

initMethod · 0.85
addBigTreeMethod · 0.85
addSmallTreeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected