! * 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. */
| 293 | * called when the columns in the parent spreadsheet are renamed. |
| 294 | */ |
| 295 | void 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 ########################### |