From 245965223450e6936d9a6b250bff777e633bbcc6 Mon Sep 17 00:00:00 2001 From: hjk Date: Fri, 22 Jul 2016 15:53:01 +0200 Subject: ProjectExplorer: Rework mode main window The existing solution with the special-style horizontal kit selector comes from a time when there was typically one, at most four targets. Today's setup can easily reach half a dozen targets with several toolchain versions each and can't be sensibly handled with the overflowing horizontal bar. This here replaces the horizontal kit selector bar as well as the top level project "tab bar" with a normal tree view. All targets are visible (but possibly disabled) at once, and can be enabled/disabled using the context menu on the tree items. Change-Id: I1ce7401ca96109bf34bc8c0ae19d265e5845aa88 Reviewed-by: Alessandro Portale --- src/plugins/clangcodemodel/clangcodemodelplugin.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/plugins/clangcodemodel/clangcodemodelplugin.cpp') diff --git a/src/plugins/clangcodemodel/clangcodemodelplugin.cpp b/src/plugins/clangcodemodel/clangcodemodelplugin.cpp index 285042cc31..1b435f95a8 100644 --- a/src/plugins/clangcodemodel/clangcodemodelplugin.cpp +++ b/src/plugins/clangcodemodel/clangcodemodelplugin.cpp @@ -58,7 +58,9 @@ void addProjectPanelWidget() auto panelFactory = new ProjectExplorer::ProjectPanelFactory(); panelFactory->setPriority(60); panelFactory->setDisplayName(ClangProjectSettingsWidget::tr("Clang Code Model")); - panelFactory->setSimpleCreateWidgetFunction(QIcon()); + panelFactory->setCreateWidgetFunction([](ProjectExplorer::Project *project) { + return new ClangProjectSettingsWidget(project); + }); ProjectExplorer::ProjectPanelFactory::registerFactory(panelFactory); } -- cgit v1.2.1