forked from qt-creator/qt-creator
InfoBar: Use Core::Id
Change-Id: I0918fbc20027a340facbedc685938a72d117d53b Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -84,7 +84,7 @@ void CMakeEditor::markAsChanged()
|
||||
if (m_infoBarShown)
|
||||
return;
|
||||
m_infoBarShown = true;
|
||||
Core::InfoBarEntry info(QLatin1String("CMakeEditor.RunCMake"),
|
||||
Core::InfoBarEntry info(Core::Id("CMakeEditor.RunCMake"),
|
||||
tr("Changes to cmake files are shown in the project tree after building."));
|
||||
info.setCustomButtonInfo(tr("Build now"), this, SLOT(build()));
|
||||
document()->infoBar()->addInfo(info);
|
||||
|
||||
@@ -208,7 +208,7 @@ bool CMakeProject::parseCMakeLists()
|
||||
CMakeBuildConfiguration *activeBC = static_cast<CMakeBuildConfiguration *>(activeTarget()->activeBuildConfiguration());
|
||||
foreach (Core::IEditor *editor, Core::EditorManager::instance()->openedEditors())
|
||||
if (isProjectFile(editor->document()->fileName()))
|
||||
editor->document()->infoBar()->removeInfo(QLatin1String("CMakeEditor.RunCMake"));
|
||||
editor->document()->infoBar()->removeInfo(Core::Id("CMakeEditor.RunCMake"));
|
||||
|
||||
// Find cbp file
|
||||
QString cbpFile = CMakeManager::findCbpFile(activeBC->buildDirectory());
|
||||
|
||||
Reference in New Issue
Block a user