| 111 | } |
| 112 | |
| 113 | void MacroList::Up() |
| 114 | { |
| 115 | int idx = _list->currentRow(); |
| 116 | if (idx != -1 && idx != 0) { |
| 117 | _list->insertItem(idx - 1, _list->takeItem(idx)); |
| 118 | _list->setCurrentRow(idx - 1); |
| 119 | emit MovedUp(idx); |
| 120 | } |
| 121 | } |
| 122 | |
| 123 | void MacroList::Down() |
| 124 | { |