! Insert multiple empty rows above(=before) the first selected row */
| 3338 | Insert multiple empty rows above(=before) the first selected row |
| 3339 | */ |
| 3340 | void SpreadsheetView::insertRowsAbove() { |
| 3341 | bool ok = false; |
| 3342 | int count = QInputDialog::getInt(nullptr, |
| 3343 | i18n("Insert multiple rows"), |
| 3344 | i18n("Enter the number of rows to insert"), |
| 3345 | 1 /*value*/, |
| 3346 | 1 /*min*/, |
| 3347 | 1000000 /*max*/, |
| 3348 | 1 /*step*/, |
| 3349 | &ok); |
| 3350 | if (ok) |
| 3351 | insertRowsAbove(count); |
| 3352 | } |
| 3353 | |
| 3354 | /*! |
| 3355 | * private helper function doing the actual insertion of rows above |
nothing calls this directly
no test coverage detected