| 79 | } |
| 80 | |
| 81 | void SettingsWorksheetPage::restoreDefaults() { |
| 82 | m_cbThemes->setItemText(0, i18n("Default")); // default theme |
| 83 | ui.chkPresenterModeInteractive->setChecked(false); |
| 84 | ui.chkDoubleBuffering->setChecked(true); |
| 85 | ui.cbPreviewThumbnailSize->setCurrentIndex(1); // medium |
| 86 | |
| 87 | int index = ui.cbTexEngine->findData(QLatin1String("xelatex")); |
| 88 | if (index == -1) { |
| 89 | index = ui.cbTexEngine->findData(QLatin1String("lualatex")); |
| 90 | if (index == -1) { |
| 91 | index = ui.cbTexEngine->findData(QLatin1String("pdflatex")); |
| 92 | if (index == -1) |
| 93 | index = ui.cbTexEngine->findData(QLatin1String("latex")); |
| 94 | } |
| 95 | } |
| 96 | ui.cbTexEngine->setCurrentIndex(index); |
| 97 | } |
| 98 | |
| 99 | void SettingsWorksheetPage::loadSettings() { |
| 100 | const KConfigGroup group = Settings::group(QStringLiteral("Settings_Worksheet")); |
nothing calls this directly
no test coverage detected