| 85 | } |
| 86 | |
| 87 | void moveRow(int from, int to) |
| 88 | { |
| 89 | if (from == to) |
| 90 | return; |
| 91 | if (from >= m_tasks.size() || to >= m_tasks.size() + 1) |
| 92 | return; |
| 93 | |
| 94 | if (beginMoveRows(QModelIndex(), from, from, QModelIndex(), to)) { |
| 95 | m_tasks.move(from, to); |
| 96 | endMoveRows(); |
| 97 | } else { |
| 98 | assert(0); |
| 99 | } |
| 100 | } |
| 101 | }; |
| 102 | |
| 103 | /* Test class to see the effect of moving rows */ |
no test coverage detected