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

Method previous

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

Source from the content-addressed store, hash-verified

248}
249
250void 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
261void PopupWidget::next()
262{

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