Generate clickable links to resource inspector in RDTreeWidget

This commit is contained in:
baldurk
2017-11-14 18:44:56 +00:00
parent 1776b4e6c0
commit 200f0799a4
16 changed files with 611 additions and 171 deletions
@@ -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;
}