MCPcopy Create free account
hub / github.com/analogdevicesinc/scopy / save

Method save

pluginbase/src/apiobject.cpp:39–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37
38template <typename T>
39void ApiObject::save(QSettings &settings, const QString &prop, const QList<T> &list)
40{
41 settings.beginWriteArray(prop, list.size());
42
43 for(int i = 0; i < list.size(); i++) {
44 settings.setArrayIndex(i);
45 settings.setValue("idx", QVariant(list.at(i)));
46 }
47
48 settings.endArray();
49}
50
51void ApiObject::save(QSettings &settings, const QString &prop, const QVariantList &list)
52{

Callers 15

saveSettingsMethod · 0.45
saveSettingsMethod · 0.45
saveSettingsMethod · 0.45
init_channel_settingsMethod · 0.45
btnExport_clickedMethod · 0.45
NetworkAnalyzerMethod · 0.45
on_btnExport_clickedMethod · 0.45
SpectrumAnalyzerMethod · 0.45
btnExportClickedMethod · 0.45
paintMethod · 0.45
exportTxtMethod · 0.45

Calls 1

setValueMethod · 0.45

Tested by 4

SpectrumAnalyzerMethod · 0.36
btnExportClickedMethod · 0.36
saveSettingsMethod · 0.36
initPreferencesMethod · 0.36