| 113 | } |
| 114 | |
| 115 | void ProjectModelPerformanceTest::addBigTree() |
| 116 | { |
| 117 | QElapsedTimer timer; |
| 118 | timer.start(); |
| 119 | for( int i = 0; i < BIG_WIDTH; i++ ) { |
| 120 | auto* item = new ProjectFolderItem( nullptr, Path( QUrl::fromLocalFile( QStringLiteral( "/f%1" ).arg( i ) ) ) ); |
| 121 | generateChilds( item, BIG_WIDTH, BIG_DEPTH ); |
| 122 | model->appendRow( item ); |
| 123 | } |
| 124 | qDebug() << "addBigTree" << timer.elapsed(); |
| 125 | } |
| 126 | |
| 127 | void ProjectModelPerformanceTest::addBigTreeDelayed() |
| 128 | { |
nothing calls this directly
no test coverage detected