MCPcopy Create free account
hub / github.com/Atarity/Lightpack / setNewOption

Method setNewOption

Software/src/Settings.cpp:1483–1501  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1481
1482
1483void Settings::setNewOption(const QString & name, const QVariant & value,
1484 bool isForceSetOption, QSettings * settings /*= m_currentProfile*/)
1485{
1486 QMutexLocker locker(&m_mutex);
1487
1488 if (isForceSetOption)
1489 {
1490 settings->setValue(name, value);
1491 } else {
1492 if (settings->contains(name) == false)
1493 {
1494 DEBUG_LOW_LEVEL << "Settings:"<< name << "not found."
1495 << "Set it to default value: " << value.toString();
1496
1497 settings->setValue(name, value);
1498 }
1499 // else option exists do nothing
1500 }
1501}
1502
1503void Settings::setNewOptionMain(const QString & name, const QVariant & value, bool isForceSetOption /*= false*/)
1504{

Callers

nothing calls this directly

Calls 1

setValueMethod · 0.80

Tested by

no test coverage detected