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

Method LoadScriptFromFilename

qrenderdoc/Windows/PythonShell.cpp:1042–1055  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1040}
1041
1042bool PythonShell::LoadScriptFromFilename(rdcstr filename)
1043{
1044 if(!filename.isEmpty())
1045 {
1046 QFile f(filename);
1047 if(f.open(QIODevice::ReadOnly | QIODevice::Text))
1048 {
1049 scriptEditor->setText(f.readAll().data());
1050 return true;
1051 }
1052 }
1053
1054 return false;
1055}
1056
1057rdcstr PythonShell::GetScriptText()
1058{

Callers 1

BeginMethod · 0.80

Calls 4

isEmptyMethod · 0.45
openMethod · 0.45
setTextMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected