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

Method selectedRowCount

src/frontend/spreadsheet/SpreadsheetView.cpp:1209–1218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1207}
1208
1209int SpreadsheetView::selectedRowCount(bool full) const {
1210 if (full)
1211 return m_tableView->selectionModel()->selectedRows().count();
1212 const auto& indexes = m_tableView->selectionModel()->selectedIndexes();
1213 QSet<int> set;
1214 for (auto& index : indexes)
1215 set.insert(index.row());
1216
1217 return set.count();
1218}
1219
1220/*!
1221 Returns the number of (at least partly) selected columns with the plot designation \param pd .

Callers

nothing calls this directly

Calls 5

selectedRowsMethod · 0.80
selectionModelMethod · 0.80
insertMethod · 0.80
countMethod · 0.45
rowMethod · 0.45

Tested by

no test coverage detected