| 135 | } |
| 136 | |
| 137 | void 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 | |
| 154 | void QtHelpConfig::reset() |
| 155 | { |
nothing calls this directly
no test coverage detected