From 882e34ee284731f9edb3a89c23fb7a0897c8da3a Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Fri, 6 May 2011 12:48:44 +0200 Subject: rewrite editor info bar handling the info about the bars is now stored in the IFile, not in the EditorView. this is somewhat more expensive for the bars which identically apply to all editors of one type, but fixes consistency issues between views. additionally, it is now possible to set several simultaneous info bars per file, which ensures that no information is lost. Co-authored-by: mae --- src/plugins/cmakeprojectmanager/cmakeproject.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/plugins/cmakeprojectmanager/cmakeproject.cpp') diff --git a/src/plugins/cmakeprojectmanager/cmakeproject.cpp b/src/plugins/cmakeprojectmanager/cmakeproject.cpp index 332d538f043..d61b326049a 100644 --- a/src/plugins/cmakeprojectmanager/cmakeproject.cpp +++ b/src/plugins/cmakeprojectmanager/cmakeproject.cpp @@ -51,6 +51,7 @@ #include #include #include +#include #include #include @@ -195,7 +196,9 @@ bool CMakeProject::parseCMakeLists() !activeTarget()->activeBuildConfiguration()) return false; - Core::EditorManager::instance()->hideEditorInfoBar("CMakeEditor.RunCMake"); + foreach (Core::IEditor *editor, Core::EditorManager::instance()->openedEditors()) + if (isProjectFile(editor->file()->fileName())) + editor->file()->infoBar()->removeInfo(QLatin1String("CMakeEditor.RunCMake")); // Find cbp file CMakeBuildConfiguration *activeBC = activeTarget()->activeBuildConfiguration(); -- cgit v1.2.3