! Insert an empty row below the last selected row */
| 3374 | Insert an empty row below the last selected row |
| 3375 | */ |
| 3376 | void SpreadsheetView::insertRowsBelow() { |
| 3377 | bool ok = false; |
| 3378 | int count = QInputDialog::getInt(nullptr, |
| 3379 | i18n("Insert multiple rows"), |
| 3380 | i18n("Enter the number of rows to insert"), |
| 3381 | 1 /*value*/, |
| 3382 | 1 /*min*/, |
| 3383 | 1000000 /*max*/, |
| 3384 | 1 /*step*/, |
| 3385 | &ok); |
| 3386 | if (ok) |
| 3387 | insertRowsBelow(count); |
| 3388 | } |
| 3389 | |
| 3390 | /*! |
| 3391 | * private helper function doing the actual insertion of rows below |
nothing calls this directly
no test coverage detected