Check if all directories are part of a project
| 231 | |
| 232 | ///Check if all directories are part of a project |
| 233 | bool directoriesInProject(const QString& dir) |
| 234 | { |
| 235 | const auto urls = getDirectoryChoice(dir); |
| 236 | return std::all_of(urls.begin(), urls.end(), [&](const QUrl& url) { |
| 237 | IProject *proj = ICore::self()->projectController()->findProjectForUrl(url); |
| 238 | return (proj && proj->path().toUrl().isLocalFile()); |
| 239 | }); |
| 240 | } |
| 241 | |
| 242 | ///Max number of items in paths combo box. |
| 243 | const int pathsMaxCount = 25; |
no test coverage detected