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

Method SaveLayout

qrenderdoc/Windows/MainWindow.cpp:3234–3248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3232}
3233
3234bool MainWindow::SaveLayout(int layout)
3235{
3236 qInfo() << "SaveLayout " << layout;
3237 QString path = GetLayoutPath(layout);
3238
3239 QVariantMap state = saveState();
3240
3241 QFile f(path);
3242 if(f.open(QIODevice::WriteOnly | QIODevice::Truncate | QIODevice::Text))
3243 return SaveToJSON(state, f, JSON_ID, JSON_VER);
3244
3245 qWarning() << "Couldn't write to " << path << " " << f.errorString();
3246
3247 return false;
3248}
3249
3250bool MainWindow::LoadLayout(int layout)
3251{

Callers

nothing calls this directly

Calls 3

SaveToJSONFunction · 0.85
errorStringMethod · 0.80
openMethod · 0.45

Tested by

no test coverage detected