! Insert multiple empty columns right to the last selected column */
| 2661 | Insert multiple empty columns right to the last selected column |
| 2662 | */ |
| 2663 | void SpreadsheetView::insertColumnsRight() { |
| 2664 | bool ok = false; |
| 2665 | int count = QInputDialog::getInt(nullptr, |
| 2666 | i18n("Insert empty columns"), |
| 2667 | i18n("Enter the number of columns to insert"), |
| 2668 | 1 /*value*/, |
| 2669 | 1 /*min*/, |
| 2670 | 1000 /*max*/, |
| 2671 | 1 /*step*/, |
| 2672 | &ok); |
| 2673 | if (!ok) |
| 2674 | return; |
| 2675 | |
| 2676 | insertColumnsRight(count); |
| 2677 | } |
| 2678 | |
| 2679 | /*! |
| 2680 | * private helper function doing the actual insertion of columns to the right |