| 259 | } |
| 260 | |
| 261 | void PopupWidget::next() |
| 262 | { |
| 263 | int index = list->currentIndex().row(); |
| 264 | ++index; |
| 265 | if (index >= model->rowCount(QModelIndex())) { |
| 266 | // wrap |
| 267 | index = 0; |
| 268 | } |
| 269 | list->setCurrentIndex(model->index(index, 0)); |
| 270 | } |
| 271 | |
| 272 | bool PopupWidget::event(QEvent *event) |
| 273 | { |
nothing calls this directly
no test coverage detected