| 883 | } |
| 884 | |
| 885 | IProject* LaunchConfigurationsModel::projectForIndex(const QModelIndex& idx) |
| 886 | { |
| 887 | if(idx.parent().isValid()) { |
| 888 | return projectForIndex(idx.parent()); |
| 889 | } else { |
| 890 | const auto* item = dynamic_cast<const ProjectItem*>(topItems[idx.row()]); |
| 891 | return item ? item->project : nullptr; |
| 892 | } |
| 893 | } |
| 894 | |
| 895 | LaunchConfigPagesContainer::LaunchConfigPagesContainer( const QList<LaunchConfigurationPageFactory*>& factories, QWidget* parent ) |
| 896 | : QWidget(parent) |
no test coverage detected