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

Method reset

kdevplatform/shell/settings/bgpreferences.cpp:31–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31void BGPreferences::reset()
32{
33 ConfigPage::reset();
34
35 Q_ASSERT(ICore::self()->activeSession());
36 KConfigGroup config(ICore::self()->activeSession()->config(), QStringLiteral("Background Parser"));
37
38 preferencesDialog->kcfg_delay->setValue(config.readEntry("Delay", 500));
39 preferencesDialog->kcfg_threads->setValue(config.readEntry("Number of Threads", QThread::idealThreadCount()));
40 preferencesDialog->kcfg_enable->setChecked(config.readEntry("Enabled", true));
41}
42
43BGPreferences::~BGPreferences( )
44{

Callers 15

RuntimeControllerMethod · 0.45
ProblemModelMethod · 0.45
setGroupingMethod · 0.45
createMethod · 0.45
updateSelectionMethod · 0.45
extractTemplateMethod · 0.45
initTestCaseMethod · 0.45
initTestCaseMethod · 0.45
initTestCaseMethod · 0.45
initTestCaseMethod · 0.45
testProblemNodeMethod · 0.45

Calls 5

resetFunction · 0.85
readEntryMethod · 0.80
activeSessionMethod · 0.45
configMethod · 0.45
setValueMethod · 0.45

Tested by 8

initTestCaseMethod · 0.36
initTestCaseMethod · 0.36
initTestCaseMethod · 0.36
initTestCaseMethod · 0.36
testProblemNodeMethod · 0.36
changesModelMethod · 0.36
initTestCaseMethod · 0.36