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

Method apply

plugins/qthelp/qthelpconfig.cpp:137–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135}
136
137void QtHelpConfig::apply()
138{
139 QStringList iconList, nameList, pathList, ghnsList;
140 for (int i = 0; i < m_configWidget->qchTable->topLevelItemCount(); i++) {
141 const QTreeWidgetItem* item = m_configWidget->qchTable->topLevelItem(i);
142 nameList << item->text(0);
143 pathList << item->text(1);
144 iconList << item->text(2);
145 ghnsList << item->text(3);
146 }
147 QString searchDir = m_configWidget->qchSearchDir->text();
148 bool loadQtDoc = m_configWidget->loadQtDocsCheckBox->isChecked();
149
150 qtHelpWriteConfig(iconList, nameList, pathList, ghnsList, searchDir, loadQtDoc);
151 static_cast<QtHelpPlugin*>(plugin())->readConfig();
152}
153
154void QtHelpConfig::reset()
155{

Callers

nothing calls this directly

Calls 3

qtHelpWriteConfigFunction · 0.85
readConfigMethod · 0.80
textMethod · 0.45

Tested by

no test coverage detected