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

Method saveConfig

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

Source from the content-addressed store, hash-verified

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

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