| 120 | |
| 121 | |
| 122 | void DebugPreferences::saveValues() { |
| 123 | int value = getMessageLevel(); |
| 124 | |
| 125 | global.setForceUTF8(forceUTF8->isChecked()); |
| 126 | global.settings->beginGroup("Debugging"); |
| 127 | global.settings->setValue("messageLevel", value); |
| 128 | global.settings->setValue("showLids", showLidColumn->isChecked()); |
| 129 | global.settings->setValue("nonAsciiSortBug", nonAsciiSortBug->isChecked()); |
| 130 | global.settings->setValue("disableImageHighlight", disableImageHighlight->isChecked()); |
| 131 | global.nonAsciiSortBug = nonAsciiSortBug->isChecked(); |
| 132 | |
| 133 | // If the disable uploads is different than the defaults or if it has changed, we save it. |
| 134 | if (disableUploads->isChecked() || disableUploads->isChecked() != global.disableUploads) |
| 135 | global.settings->setValue("disableUploads", disableUploads->isChecked()); |
| 136 | |
| 137 | global.settings->endGroup(); |
| 138 | global.setAutoSaveInterval(autoSaveInterval->value()); |
| 139 | global.disableUploads = disableUploads->isChecked(); |
| 140 | global.setStrictDTD(!strictDTD->isChecked()); |
| 141 | global.setBypassTidy(bypassTidy->isChecked()); |
| 142 | |
| 143 | #ifndef _WIN32 |
| 144 | global.setInterceptSigHup(interceptSigHup->isChecked()); |
| 145 | #endif |
| 146 | |
| 147 | // global.setMultiThreadSave(multiThreadSave->isChecked()); |
| 148 | global.setUseLibTidy(useLibTidy->isChecked()); |
| 149 | } |
nothing calls this directly
no test coverage detected