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

Method APIInspector

qrenderdoc/Windows/APIInspector.cpp:28–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26#include "ui_APIInspector.h"
27
28APIInspector::APIInspector(ICaptureContext &ctx, QWidget *parent)
29 : QFrame(parent), ui(new Ui::APIInspector), m_Ctx(ctx)
30{
31 ui->setupUi(this);
32
33 ui->apiEvents->setColumns({lit("EID"), tr("Event")});
34 ui->apiEvents->header()->resizeSection(0, 150);
35
36 ui->splitter->setCollapsible(1, true);
37 ui->splitter->setSizes({1, 0});
38
39 ui->callstack->setFont(Formatter::PreferredFont());
40 ui->apiEvents->setFont(Formatter::PreferredFont());
41
42 RDSplitterHandle *handle = (RDSplitterHandle *)ui->splitter->handle(1);
43 handle->setTitle(tr("Callstack"));
44 handle->setIndex(1);
45 handle->setCollapsed(true);
46
47 m_Ctx.AddCaptureViewer(this);
48}
49
50APIInspector::~APIInspector()
51{

Callers

nothing calls this directly

Calls 10

resizeSectionMethod · 0.80
headerMethod · 0.80
trFunction · 0.50
setColumnsMethod · 0.45
setFontMethod · 0.45
handleMethod · 0.45
setTitleMethod · 0.45
setIndexMethod · 0.45
setCollapsedMethod · 0.45
AddCaptureViewerMethod · 0.45

Tested by

no test coverage detected