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

Method SaveCurrentCapture

qrenderdoc/Windows/MainWindow.cpp:1046–1065  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1044}
1045
1046bool MainWindow::SaveCurrentCapture(QString saveFilename)
1047{
1048 QString origFilename = m_Ctx.GetCaptureFilename();
1049
1050 bool success = m_Ctx.SaveCaptureTo(saveFilename);
1051
1052 if(!success)
1053 return false;
1054
1055 AddRecentFile(m_Ctx.Config().RecentCaptureFiles, saveFilename);
1056 PopulateRecentCaptureFiles();
1057 SetTitle(saveFilename);
1058
1059 for(LiveCapture *live : m_LiveCaptures)
1060 live->fileSaved(origFilename, saveFilename);
1061
1062 ui->action_Save_Capture_Inplace->setEnabled(false);
1063
1064 return true;
1065}
1066
1067void MainWindow::exportCapture(const CaptureFileFormat &fmt)
1068{

Callers 1

saveCaptureMethod · 0.80

Calls 5

fileSavedMethod · 0.80
AddRecentFileFunction · 0.50
GetCaptureFilenameMethod · 0.45
SaveCaptureToMethod · 0.45
ConfigMethod · 0.45

Tested by

no test coverage detected