MCPcopy Create free account
hub / github.com/KDE/kdevelop / LanguagePreferences

Method LanguagePreferences

kdevplatform/shell/settings/languagepreferences.cpp:29–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27{
28
29LanguagePreferences::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
51void LanguagePreferences::notifySettingsChanged()
52{

Callers

nothing calls this directly

Calls 4

setupUiMethod · 0.80
setToolTipMethod · 0.80
setEnabledMethod · 0.45
toolTipMethod · 0.45

Tested by

no test coverage detected