MCPcopy Create free account
hub / github.com/awawa-dev/HyperHDR / getSettingsRecordString

Method getSettingsRecordString

sources/db/SettingsTable.cpp:73–83  ·  view source on GitHub ↗

@brief Get 'config' column of settings entry as QString @param[in] type The settings type @return The QString

Source from the content-addressed store, hash-verified

71/// @return The QString
72///
73QString SettingsTable::getSettingsRecordString(const QString& type) const
74{
75 QVariantMap results;
76 VectorPair cond;
77 cond.append(CPair("type", type));
78 // when a setting is not global we are searching also for the instance
79 if (!isSettingGlobal(type))
80 cond.append(CPair("AND " + INSTANCE_COLUMN, _instance));
81 getRecord(cond, results, QStringList("config"));
82 return results["config"].toString();
83}
84
85bool SettingsTable::deleteSettingsRecordString(const QString& type) const
86{

Callers 1

saveSettingsMethod · 0.80

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected