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

Method readConfig

src/plugins/chat/option/chatoptionwidget.cpp:61–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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