MCPcopy Create free account
hub / github.com/baldurk/renderdoc / jumpToBookmark

Method jumpToBookmark

qrenderdoc/Windows/EventBrowser.cpp:5747–5756  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5745}
5746
5747void EventBrowser::jumpToBookmark(int idx)
5748{
5749 const rdcarray<EventBookmark> bookmarks = m_Ctx.GetBookmarks();
5750 if(idx < 0 || idx >= bookmarks.count() || !m_Ctx.IsCaptureLoaded())
5751 return;
5752
5753 // don't exclude ourselves, so we're updated as normal
5754 if(!SelectEvent(bookmarks[idx].eventId))
5755 ui->events->setCurrentIndex(QModelIndex());
5756}
5757
5758void EventBrowser::highlightBookmarks()
5759{

Callers

nothing calls this directly

Calls 4

QModelIndexClass · 0.50
GetBookmarksMethod · 0.45
countMethod · 0.45
IsCaptureLoadedMethod · 0.45

Tested by

no test coverage detected