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

Method reset

plugins/qthelp/qthelpconfig.cpp:154–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154void QtHelpConfig::reset()
155{
156 m_configWidget->qchTable->clear();
157
158 QStringList iconList, nameList, pathList, ghnsList;
159 QString searchDir;
160 bool loadQtDoc;
161 qtHelpReadConfig(iconList, nameList, pathList, ghnsList, searchDir, loadQtDoc);
162
163 const int size = qMin(qMin(iconList.size(), nameList.size()), pathList.size());
164 for(int i = 0; i < size; ++i) {
165 QString ghnsStatus = ghnsList.size()>i ? ghnsList.at(i) : QStringLiteral("0");
166 addTableItem(iconList.at(i), nameList.at(i), pathList.at(i), ghnsStatus);
167 }
168 m_configWidget->qchSearchDir->setText(searchDir);
169 m_configWidget->loadQtDocsCheckBox->setChecked(loadQtDoc);
170
171 emit changed();
172}
173
174void QtHelpConfig::defaults()
175{

Callers

nothing calls this directly

Calls 5

qtHelpReadConfigFunction · 0.85
clearMethod · 0.45
sizeMethod · 0.45
atMethod · 0.45
setTextMethod · 0.45

Tested by

no test coverage detected