MCPcopy Create free account
hub / github.com/GilesBathgate/RapCAD / saveFile

Method saveFile

src/ui/codeeditor.cpp:96–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96bool CodeEditor::saveFile()
97{
98 if(fileName.isEmpty())
99 return saveAsFile();
100
101 QTextDocumentWriter writer(fileName);
102 writer.setFormat("plaintext");
103 bool success = writer.write(document());
104 if(success)
105 document()->setModified(false);
106
107 return success;
108}
109
110bool CodeEditor::saveAsFile()
111{

Callers 1

renderingTestMethod · 0.45

Calls 1

isEmptyMethod · 0.45

Tested by 1

renderingTestMethod · 0.36