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

Method firstSelectedRow

src/frontend/spreadsheet/SpreadsheetView.cpp:1305–1316  ·  view source on GitHub ↗

! Return the index of the first selected row. If \param full is \c true, this function only looks for fully selected rows. */

Source from the content-addressed store, hash-verified

1303 If \param full is \c true, this function only looks for fully selected rows.
1304 */
1305int SpreadsheetView::firstSelectedRow(bool full) const {
1306 QModelIndexList indexes;
1307 if (!full)
1308 indexes = m_tableView->selectionModel()->selectedIndexes();
1309 else
1310 indexes = m_tableView->selectionModel()->selectedRows();
1311
1312 if (!indexes.empty())
1313 return indexes.first().row();
1314 else
1315 return -1;
1316}
1317
1318/*!
1319 Return the index of the last selected row.

Callers 4

findNextSimpleMethod · 0.45
findPreviousSimpleMethod · 0.45
findNextMethod · 0.45
findPreviousMethod · 0.45

Calls 4

selectionModelMethod · 0.80
selectedRowsMethod · 0.80
emptyMethod · 0.45
rowMethod · 0.45

Tested by

no test coverage detected