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

Method handleHorizontalSectionMoved

src/frontend/spreadsheet/SpreadsheetView.cpp:1124–1135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1122}
1123
1124void SpreadsheetView::handleHorizontalSectionMoved(int index, int from, int to) {
1125 static bool inside = false;
1126 if (inside)
1127 return;
1128
1129 Q_ASSERT(index == from);
1130
1131 inside = true;
1132 m_tableView->horizontalHeader()->moveSection(to, from);
1133 inside = false;
1134 m_spreadsheet->moveColumn(from, to);
1135}
1136
1137// TODO Implement the "change of the column name"-mode upon a double click
1138void SpreadsheetView::handleHorizontalHeaderDoubleClicked(int /*index*/) {

Callers

nothing calls this directly

Calls 1

moveColumnMethod · 0.80

Tested by

no test coverage detected