SETTINGS
| 217 | //******************** SETTINGS ******************************* |
| 218 | //************************************************************* |
| 219 | void SpreadsheetDock::load() { |
| 220 | ui.sbColumnCount->setValue(m_spreadsheet->columnCount()); |
| 221 | ui.sbRowCount->setValue(m_spreadsheet->rowCount()); |
| 222 | ui.cbShowComments->setChecked(m_spreadsheet->showComments()); |
| 223 | ui.cbShowSparklines->setChecked(m_spreadsheet->showSparklines()); |
| 224 | ui.cbLinkedSpreadsheet->setAspect(m_spreadsheet->linkedSpreadsheet()); |
| 225 | ui.cbLinkingEnabled->setChecked(m_spreadsheet->linking()); |
| 226 | linkingChanged(m_spreadsheet->linking()); // call this to update the widgets |
| 227 | } |
| 228 | |
| 229 | void SpreadsheetDock::loadConfigFromTemplate(KConfig& config) { |
| 230 | auto name = TemplateHandler::templateName(config); |
no test coverage detected