MCPcopy Create free account
hub / github.com/Martchus/syncthingtray / openSettingFile

Method openSettingFile

syncthingwidgets/quick/appbase.cpp:85–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85QString AppBase::openSettingFile(QFile &settingsFile, const QString &path)
86{
87 settingsFile.close();
88 settingsFile.unsetError();
89 settingsFile.setFileName(path);
90 if (!settingsFile.open(QFile::ReadWrite)) {
91 return tr("Unable to open settings under \"%1\": ").arg(path) + settingsFile.errorString();
92 }
93 return QString();
94}
95
96QDir &AppBase::settingsDir()
97{

Callers

nothing calls this directly

Calls 2

errorStringMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected