MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / saveConfig

Method saveConfig

src/plugins/python/python/option/pythonoptionwidget.cpp:44–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44void PythonOptionWidget::saveConfig()
45{
46 for (int index = 0; index < d->tabWidget->count(); index++) {
47 PageWidget *pageWidget = qobject_cast<PageWidget *>(d->tabWidget->widget(index));
48 if (pageWidget) {
49 QString itemNode = d->tabWidget->tabText(d->tabWidget->currentIndex());
50 QMap<QString, QVariant> map;
51 pageWidget->getUserConfig(map);
52 OptionManager::getInstance()->setValue(option::CATEGORY_PYTHON, itemNode, map);
53 }
54 }
55}
56
57void PythonOptionWidget::readConfig()
58{

Callers

nothing calls this directly

Calls 5

countMethod · 0.45
widgetMethod · 0.45
currentIndexMethod · 0.45
getUserConfigMethod · 0.45
setValueMethod · 0.45

Tested by

no test coverage detected