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

Method clearSelectedCells

src/frontend/matrix/MatrixView.cpp:748–770  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

746}
747
748void MatrixView::clearSelectedCells() {
749 int first_row = firstSelectedRow();
750 if (first_row < 0)
751 return;
752
753 int first_col = firstSelectedColumn();
754 if (first_col < 0)
755 return;
756
757 int last_row = lastSelectedRow();
758 int last_col = lastSelectedColumn();
759
760 WAIT_CURSOR;
761 m_matrix->beginMacro(i18n("%1: clear selected cell(s)", m_matrix->name()));
762 for (int i = first_row; i <= last_row; i++) {
763 for (int j = first_col; j <= last_col; j++) {
764 if (isCellSelected(i, j))
765 m_matrix->clearCell(i, j);
766 }
767 }
768 m_matrix->endMacro();
769 RESET_CURSOR;
770}
771
772class UpdateImageTask : public QRunnable {
773public:

Callers

nothing calls this directly

Calls 4

beginMacroMethod · 0.80
clearCellMethod · 0.80
endMacroMethod · 0.80
nameMethod · 0.45

Tested by

no test coverage detected