MCPcopy Create free account
hub / github.com/Segs/Segs / setSettingsPath

Method setSettingsPath

Components/Settings.cpp:40–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40void Settings::setSettingsPath(const QString &path)
41{
42 if(path.isEmpty())
43 qCritical() << "Settings path not defined? This is unpossible!";
44
45 s_settings_path = getSEGSDir() + QDir::separator() + path;
46
47 if(!fileExists(s_settings_path))
48 createSettingsFile(s_settings_path);
49
50 qCDebug(logSettings) << "Settings Path" << s_settings_path;
51}
52
53QString Settings::getSettingsPath()
54{

Callers

nothing calls this directly

Calls 2

fileExistsFunction · 0.85
isEmptyMethod · 0.45

Tested by

no test coverage detected