MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / next

Method next

src/plugins/chat/widgets/referencepopup.cpp:261–270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259}
260
261void 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
272bool PopupWidget::event(QEvent *event)
273{

Callers

nothing calls this directly

Calls 6

rowMethod · 0.80
QModelIndexClass · 0.50
currentIndexMethod · 0.45
rowCountMethod · 0.45
setCurrentIndexMethod · 0.45
indexMethod · 0.45

Tested by

no test coverage detected