MCPcopy Create free account
hub / github.com/KDE/labplot / load

Method load

src/frontend/dockwidgets/SpreadsheetDock.cpp:219–227  ·  view source on GitHub ↗

SETTINGS

Source from the content-addressed store, hash-verified

217//******************** SETTINGS *******************************
218//*************************************************************
219void 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
229void SpreadsheetDock::loadConfigFromTemplate(KConfig& config) {
230 auto name = TemplateHandler::templateName(config);

Callers 1

setSpreadsheetsMethod · 0.95

Calls 6

setAspectMethod · 0.80
setValueMethod · 0.45
columnCountMethod · 0.45
rowCountMethod · 0.45
showCommentsMethod · 0.45
showSparklinesMethod · 0.45

Tested by

no test coverage detected