forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.1'
Change-Id: Ia90424d479936a898705c433e5810c77ae088b2c
This commit is contained in:
@@ -75,7 +75,8 @@ void CppCodeModelSettingsWidget::setupClangCodeModelWidgets()
|
||||
{
|
||||
const bool isClangActive = CppModelManager::instance()->isClangCodeModelActive();
|
||||
|
||||
m_ui->activateClangCodeModelPluginHint->setVisible(!isClangActive);
|
||||
m_ui->clangCodeModelIsDisabledHint->setVisible(!isClangActive);
|
||||
m_ui->clangCodeModelIsEnabledHint->setVisible(isClangActive);
|
||||
m_ui->clangSettingsGroupBox->setEnabled(isClangActive);
|
||||
|
||||
ClangDiagnosticConfigsModel diagnosticConfigsModel(m_settings->clangCustomDiagnosticConfigs());
|
||||
|
||||
@@ -15,9 +15,16 @@
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||
<item>
|
||||
<widget class="QLabel" name="activateClangCodeModelPluginHint">
|
||||
<widget class="QLabel" name="clangCodeModelIsEnabledHint">
|
||||
<property name="text">
|
||||
<string><i>Activate the Clang Code Model plugin to enable the options here.</i></string>
|
||||
<string><i>The Clang Code Model is enabled because the corresponding plugin is loaded.</i></string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="clangCodeModelIsDisabledHint">
|
||||
<property name="text">
|
||||
<string><i>The Clang Code Model is disabled because the corresponding plugin is not loaded.</i></string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
Reference in New Issue
Block a user