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

Method updateColumnNames

src/backend/spreadsheet/StatisticsSpreadsheet.cpp:295–300  ·  view source on GitHub ↗

! * updates the content of the first column that has the names of the columns of the parent spreadsheet. * called when the columns in the parent spreadsheet are renamed. */

Source from the content-addressed store, hash-verified

293 * called when the columns in the parent spreadsheet are renamed.
294 */
295void StatisticsSpreadsheet::updateColumnNames() {
296 const auto& columns = m_spreadsheet->children<Column>();
297 auto* nameColumn = children<Column>().at(0);
298 for (int i = 0; i < columns.count(); ++i)
299 nameColumn->setTextAt(i, columns.at(i)->name());
300}
301
302// ##############################################################################
303// ################## Serialization/Deserialization ###########################

Callers

nothing calls this directly

Calls 3

countMethod · 0.45
setTextAtMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected