mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-23 14:15:42 +00:00
Use rdc types instead of Qt containers in public QRenderDoc interface
* This is to support python bindings - the pyside implementation of QVector, QString, etc is not available to SWIG, so SWIG treates these all as opaque types. * Rather than trying to set up bindings that work for rdcarray and QList/QVector, or implementing separate bindings, we instead just say that the public interface must use the rdc types. In most cases they seamlessly convert to/from Qt types anyway. * In a couple of places we use an array of pairs instead of a map. In future we probably want an rdcdict or rdcmap with proper dict bindings in python.
This commit is contained in:
@@ -924,7 +924,7 @@ void EventBrowser::clearBookmarks()
|
||||
|
||||
void EventBrowser::repopulateBookmarks()
|
||||
{
|
||||
const QList<EventBookmark> bookmarks = m_Ctx.GetBookmarks();
|
||||
const rdcarray<EventBookmark> bookmarks = m_Ctx.GetBookmarks();
|
||||
|
||||
// add any bookmark markers that we don't have
|
||||
for(const EventBookmark &mark : bookmarks)
|
||||
@@ -1002,7 +1002,7 @@ void EventBrowser::toggleBookmark(uint32_t EID)
|
||||
|
||||
void EventBrowser::jumpToBookmark(int idx)
|
||||
{
|
||||
const QList<EventBookmark> bookmarks = m_Ctx.GetBookmarks();
|
||||
const rdcarray<EventBookmark> bookmarks = m_Ctx.GetBookmarks();
|
||||
if(idx < 0 || idx >= bookmarks.count() || !m_Ctx.IsCaptureLoaded())
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user