forked from qt-creator/qt-creator
InfoBar: Introduce global suppression
* Generalize "Do not show again" * Use in CMakeEditor Change-Id: Ia86b7c79b9022cbfcd06fed02b94fe0b15c87a56 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -86,7 +86,8 @@ void CMakeEditor::markAsChanged()
|
||||
if (!infoBar->canInfoBeAdded(infoRunCmake))
|
||||
return;
|
||||
Core::InfoBarEntry info(infoRunCmake,
|
||||
tr("Changes to cmake files are shown in the project tree after building."));
|
||||
tr("Changes to cmake files are shown in the project tree after building."),
|
||||
Core::InfoBarEntry::GlobalSuppressionEnabled);
|
||||
info.setCustomButtonInfo(tr("Build now"), this, SLOT(build()));
|
||||
infoBar->addInfo(info);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user