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

Method setContext

qrenderdoc/Widgets/BufferFormatSpecifier.cpp:214–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212}
213
214void BufferFormatSpecifier::setContext(ICaptureContext *ctx)
215{
216 m_Ctx = ctx;
217
218 if(!globalFormatList)
219 globalFormatList = new BufferFormatList(*ctx, ctx->GetMainWindow()->Widget());
220
221 QObject::connect(globalFormatList, &BufferFormatList::formatListUpdated, this,
222 &BufferFormatSpecifier::updateFormatList);
223
224 m_Ctx->GetMainWindow()->RegisterShortcut(QKeySequence(QKeySequence::Refresh).toString(), this,
225 [this](QWidget *) { apply_clicked(); });
226
227 updateFormatList();
228}
229
230void BufferFormatSpecifier::setTitle(QString title)
231{

Callers 1

BufferViewerMethod · 0.80

Calls 6

connectFunction · 0.85
RegisterShortcutMethod · 0.80
QKeySequenceFunction · 0.50
WidgetMethod · 0.45
GetMainWindowMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected