forked from qt-creator/qt-creator
ClangTools: Show hint when disabling "Build the project before analysis."
Show also the same hint as a tooltip. Fixes: QTCREATORBUG-22382 Change-Id: If1b594994cea387d6727775ce4c28c21d51f2d86 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -56,9 +56,12 @@ ClangToolsConfigWidget::ClangToolsConfigWidget(
|
||||
[settings](int count) { settings->setSimultaneousProcesses(count); });
|
||||
|
||||
QCheckBox *buildBeforeAnalysis = m_ui->clangToolsBasicSettings->ui()->buildBeforeAnalysis;
|
||||
buildBeforeAnalysis->setToolTip(hintAboutBuildBeforeAnalysis());
|
||||
buildBeforeAnalysis->setCheckState(settings->savedBuildBeforeAnalysis()
|
||||
? Qt::Checked : Qt::Unchecked);
|
||||
connect(buildBeforeAnalysis, &QCheckBox::toggled, [settings](bool checked) {
|
||||
if (!checked)
|
||||
showHintAboutBuildBeforeAnalysis();
|
||||
settings->setBuildBeforeAnalysis(checked);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user