Add Show in File System View to project tree context menu

That opens the selected file/path in the file system view.
Behaves the same as the navigation view shortcut + syncing with the
selected file.

It would be nice to have that at other places too, but this requires
moving the file system view to Core plugin first.

Change-Id: Icc6d1041156d97f5d2bda43a3501758f06fe80aa
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
Cristian Adam
2021-09-17 17:33:47 +02:00
committed by Eike Ziller
parent 8cdbb31aaf
commit ef545260cd
6 changed files with 52 additions and 6 deletions

View File

@@ -238,8 +238,7 @@ QWidget *NavigationWidget::activateSubWidget(Id factoryId, Side fallbackSide)
preferredPosition = info.position;
}
navigationWidget->activateSubWidget(factoryId, preferredPosition);
return navigationWidget;
return navigationWidget->activateSubWidget(factoryId, preferredPosition);
}
void NavigationWidget::setFactories(const QList<INavigationWidgetFactory *> &factories)