This patch provide mechanism for activating (showing) selected tabs in Problems View. This is useful for plugins, which provides custom problem models and allows them to automatically (for user) shows results of the work.
Tested on new version of kdev-cppcheck pugin (not pushed to upstream yet):
If you want to access this API from elsewhere (e.g. cppcheck), please create a proper public API instead of relying on invokeMethod hacks.
Ok, it's done. Because of ProblemsView class is not public, the best reasonable place which I could find for a new API is ProblemModelSet class.
|156 ↗||(On Diff #6422)|
This definitely needs to check against w being a nullptr.
|357 ↗||(On Diff #6422)|
Almost copied code from ProblemsView::onModelRemoved.
Introduce a tabIndexForName(const QString&) function, called from both ProblemsView::onModelRemoved and here.