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

Method handleHorizontalSectionResized

src/frontend/spreadsheet/SpreadsheetView.cpp:1099–1108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1097}
1098
1099void SpreadsheetView::handleHorizontalSectionResized(int logicalIndex, int /* oldSize */, int newSize) {
1100 // save the new size in the column
1101 Column* col = m_spreadsheet->child<Column>(logicalIndex);
1102 col->setWidth(newSize);
1103
1104 if (m_frozenTableView && logicalIndex == 0) {
1105 m_frozenTableView->setColumnWidth(0, newSize);
1106 updateFrozenTableGeometry();
1107 }
1108}
1109
1110void SpreadsheetView::goToCell(int row, int col) {
1111 QModelIndex index = m_model->index(row, col);

Callers

nothing calls this directly

Calls 2

setWidthMethod · 0.45
setColumnWidthMethod · 0.45

Tested by

no test coverage detected