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

Method readConfig

src/plugins/aimanager/option/custommodelsoptionwidget.cpp:59–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59void CustomModelsOptionWidget::readConfig()
60{
61 for (int index = 0; index < d->tabWidget->count(); index++) {
62 PageWidget *pageWidget = qobject_cast<PageWidget *>(d->tabWidget->widget(index));
63 if (pageWidget) {
64 QString itemNode = d->tabWidget->tabText(d->tabWidget->currentIndex());
65 QMap<QString, QVariant> map = OptionManager::getInstance()->getValue(kCATEGORY_CUSTOMMODELS, itemNode).toMap();
66 pageWidget->setUserConfig(map);
67 }
68 }
69}

Callers

nothing calls this directly

Calls 5

countMethod · 0.45
widgetMethod · 0.45
currentIndexMethod · 0.45
getValueMethod · 0.45
setUserConfigMethod · 0.45

Tested by

no test coverage detected