| 398 | } |
| 399 | |
| 400 | void ProjectTreeView::restoreState( IProject* project ) |
| 401 | { |
| 402 | if ( !project ) { |
| 403 | return; |
| 404 | } |
| 405 | |
| 406 | KConfigGroup configGroup( ICore::self()->activeSession()->config(), |
| 407 | settingsConfigGroup() + project->name() ); |
| 408 | ProjectModelSaver saver; |
| 409 | saver.setProject( project ); |
| 410 | saver.setView( this ); |
| 411 | saver.restoreState( configGroup ); |
| 412 | } |
| 413 | |
| 414 | void ProjectTreeView::rowsInserted( const QModelIndex& parent, int start, int end ) |
| 415 | { |
no test coverage detected