mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 17:40:39 +00:00
Generate clickable links to resource inspector in RDTreeWidget
This commit is contained in:
@@ -131,3 +131,16 @@ QString ConfigFilePath(const QString &filename)
|
||||
|
||||
return QDir::cleanPath(dir.absoluteFilePath(filename));
|
||||
}
|
||||
|
||||
ICaptureContext *getCaptureContext(QWidget *widget)
|
||||
{
|
||||
void *ctxptr = NULL;
|
||||
|
||||
while(widget && !ctxptr)
|
||||
{
|
||||
ctxptr = widget->property("ICaptureContext").value<void *>();
|
||||
widget = widget->parentWidget();
|
||||
}
|
||||
|
||||
return (ICaptureContext *)ctxptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user