! Returns how many columns are selected. If full is true, this function only returns the number of fully selected columns. */
| 395 | If full is true, this function only returns the number of fully selected columns. |
| 396 | */ |
| 397 | int MatrixView::selectedColumnCount(bool full) const { |
| 398 | int count = 0; |
| 399 | int cols = m_matrix->columnCount(); |
| 400 | for (int i = 0; i < cols; i++) |
| 401 | if (isColumnSelected(i, full)) |
| 402 | count++; |
| 403 | return count; |
| 404 | } |
| 405 | |
| 406 | /*! |
| 407 | Returns true if column 'col' is selected; otherwise false. |