! Return how many rows are (at least partly) selected If full is true, this function only returns the number of fully selected rows. */
| 419 | If full is true, this function only returns the number of fully selected rows. |
| 420 | */ |
| 421 | int MatrixView::selectedRowCount(bool full) const { |
| 422 | int count = 0; |
| 423 | int rows = m_matrix->rowCount(); |
| 424 | for (int i = 0; i < rows; i++) |
| 425 | if (isRowSelected(i, full)) |
| 426 | count++; |
| 427 | return count; |
| 428 | } |
| 429 | |
| 430 | /*! |
| 431 | Returns true if row \c row is selected; otherwise false |
no test coverage detected