| 27 | { |
| 28 | |
| 29 | LanguagePreferences::LanguagePreferences(QWidget* parent) |
| 30 | : ConfigPage(nullptr, LanguageConfig::self(), parent) |
| 31 | { |
| 32 | preferencesDialog = new Ui::LanguagePreferences; |
| 33 | preferencesDialog->setupUi(this); |
| 34 | preferencesDialog->kcfg_minFilesForSimplifiedParsing->setSuffix(ki18ncp("@item:valuesuffix", " file", " files")); |
| 35 | |
| 36 | connect(preferencesDialog->kcfg_globalColorSource, qOverload<int>(&QComboBox::currentIndexChanged), this, |
| 37 | [this](int index) { |
| 38 | auto canColorize = index == static_cast<int>(ICompletionSettings::GlobalColorSource::AutoGenerated); |
| 39 | preferencesDialog->kcfg_globalColorization->setEnabled(canColorize); |
| 40 | }); |
| 41 | |
| 42 | preferencesDialog->label_precompiledPreambleStorage->setToolTip( |
| 43 | preferencesDialog->kcfg_precompiledPreambleStorage->toolTip()); |
| 44 | |
| 45 | // TODO: remove the following workaround line as well as a complementary workaround |
| 46 | // that disables storing preambles in memory in clangindex.cpp after fixing |
| 47 | // the crash reported in https://bugs.kde.org/show_bug.cgi?id=486932 properly. |
| 48 | preferencesDialog->groupBox_4->hide(); |
| 49 | } |
| 50 | |
| 51 | void LanguagePreferences::notifySettingsChanged() |
| 52 | { |
nothing calls this directly
no test coverage detected