! Return the index of the first selected column. If \param full is \c true, this function only looks for fully selected columns. */
| 1277 | If \param full is \c true, this function only looks for fully selected columns. |
| 1278 | */ |
| 1279 | int SpreadsheetView::firstSelectedColumn(bool full) const { |
| 1280 | const int cols = m_spreadsheet->columnCount(); |
| 1281 | for (int i = 0; i < cols; i++) { |
| 1282 | if (isColumnSelected(i, full)) |
| 1283 | return i; |
| 1284 | } |
| 1285 | return -1; |
| 1286 | } |
| 1287 | |
| 1288 | /*! |
| 1289 | Return the index of the last selected column. |
no test coverage detected