| 369 | } |
| 370 | |
| 371 | Widget * WidgetManager::getActiveWidgetForFile( QString filepath ) const |
| 372 | { |
| 373 | for (int i = 0; i < _widgets.size(); ++i) |
| 374 | { |
| 375 | QString widgetWorkingDir = _widgets[i]->workingDirectory; |
| 376 | if (filepath.startsWith(widgetWorkingDir, Qt::CaseInsensitive)) |
| 377 | { |
| 378 | // the file is located in a particular widget's working directory, so |
| 379 | // we assume that it is managed by that widget |
| 380 | return _widgets[i]; |
| 381 | } |
| 382 | } |
| 383 | return NULL; |
| 384 | } |
| 385 | |
| 386 | bool WidgetManager::reloadWidgetActorOverrides( Widget * w, bool reloadProperties ) |
| 387 | { |
no test coverage detected