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

Method removeSelectedColumns

src/frontend/matrix/MatrixView.cpp:931–944  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

929}
930
931void MatrixView::removeSelectedColumns() {
932 int first = firstSelectedColumn();
933 int last = lastSelectedColumn();
934 if (first < 0)
935 return;
936
937 WAIT_CURSOR;
938 m_matrix->beginMacro(i18n("%1: remove selected column(s)", m_matrix->name()));
939 for (int i = last; i >= first; i--)
940 if (isColumnSelected(i, false))
941 m_matrix->removeColumns(i, 1);
942 m_matrix->endMacro();
943 RESET_CURSOR;
944}
945
946void MatrixView::clearSelectedColumns() {
947 WAIT_CURSOR;

Callers

nothing calls this directly

Calls 4

beginMacroMethod · 0.80
endMacroMethod · 0.80
nameMethod · 0.45
removeColumnsMethod · 0.45

Tested by

no test coverage detected