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

Function AddRecentFile

qrenderdoc/Code/Interface/PersistantConfig.cpp:641–656  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

639}
640
641void AddRecentFile(rdcarray<rdcstr> &recentList, const rdcstr &file)
642{
643 QDir dir(file);
644 QString path = dir.canonicalPath();
645
646 if(path.isEmpty())
647 {
648 qWarning() << "Got empty path from " << QString(file);
649 return;
650 }
651
652 if(recentList.contains(rdcstr(path)))
653 recentList.removeOne(path);
654
655 recentList.push_back(path);
656}
657
658ShaderProcessingTool::ShaderProcessingTool(const QVariant &var)
659{

Callers 5

LoadCaptureThreadedMethod · 0.50
SaveCurrentCaptureMethod · 0.50
saveCaptureMethod · 0.50

Calls 6

rdcstrClass · 0.85
QStringFunction · 0.50
isEmptyMethod · 0.45
containsMethod · 0.45
removeOneMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected