MCPcopy Create free account
hub / github.com/Artikash/Textractor / Save

Method Save

extensions/lua.cpp:74–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72 }
73
74 void Save()
75 {
76 QTextFile(LUA_SAVE_FILE, QIODevice::WriteOnly | QIODevice::Truncate).write(scriptEditor.toPlainText().toUtf8());
77 }
78
79 QHBoxLayout layout{ this };
80 QPlainTextEdit scriptEditor{ QTextFile(LUA_SAVE_FILE, QIODevice::ReadOnly).readAll(), this };

Callers

nothing calls this directly

Calls 1

QTextFileClass · 0.85

Tested by

no test coverage detected