| 248 | } |
| 249 | |
| 250 | void PopupWidget::previous() |
| 251 | { |
| 252 | int index = list->currentIndex().row(); |
| 253 | --index; |
| 254 | if (index < 0) { |
| 255 | // wrap |
| 256 | index = model->rowCount(QModelIndex()) - 1; |
| 257 | } |
| 258 | list->setCurrentIndex(model->index(index, 0)); |
| 259 | } |
| 260 | |
| 261 | void PopupWidget::next() |
| 262 | { |
nothing calls this directly
no test coverage detected