Utils::PathChooser: Allow the core plugin to extend the context menu
And then use this to add the "Open in Graphical Shell" and "Open in
Terminal" actions.
Those actions cannot be implemented in Utils directly since the Core::FileUtils
depends on the Options dialog.
This affects all PathChoosers, and there's currently no way for a PathChooser
to opt out or have a different context menu. That can be added at a later
point.
Change-Id: I22121c19d66f08785381c7e0bca5317628eb6342
Task-number: QTCREATORBUG-14736
Reviewed-by:
Eike Ziller <eike.ziller@theqtcompany.com>
Showing
- src/libs/utils/pathchooser.cpp 23 additions, 0 deletionssrc/libs/utils/pathchooser.cpp
- src/libs/utils/pathchooser.h 7 additions, 0 deletionssrc/libs/utils/pathchooser.h
- src/plugins/coreplugin/coreplugin.cpp 26 additions, 0 deletionssrc/plugins/coreplugin/coreplugin.cpp
- src/plugins/coreplugin/coreplugin.h 9 additions, 1 deletionsrc/plugins/coreplugin/coreplugin.h
Please register or sign in to comment