MCPcopy Index your code
hub / github.com/Audio4Linux/JDSP4Linux / restoreGraphicEQView

Method restoreGraphicEQView

src/MainWindow.cpp:1243–1263  ·  view source on GitHub ↗

GraphicEQ states

Source from the content-addressed store, hash-verified

1241
1242// GraphicEQ states
1243void MainWindow::restoreGraphicEQView()
1244{
1245 QVariantMap state;
1246 state = ConfigIO::readFile(AppConfig::instance().getGraphicEqStatePath());
1247
1248 ConfigContainer conf;
1249 conf.setConfigMap(state);
1250 if (state.count() >= 4 && conf.getInt("scrollY") != 0)
1251 {
1252 ui->graphicEq->loadPreferences(state);
1253 }
1254 else
1255 {
1256 ConfigContainer pref;
1257 pref.setValue("scrollX", 102);
1258 pref.setValue("scrollY", 825);
1259 pref.setValue("zoomX", 0.561);
1260 pref.setValue("zoomY", 3.822);
1261 ui->graphicEq->loadPreferences(pref.getConfigMap());
1262 }
1263}
1264
1265void MainWindow::saveGraphicEQView()
1266{

Callers

nothing calls this directly

Calls 6

getGraphicEqStatePathMethod · 0.80
setConfigMapMethod · 0.80
countMethod · 0.80
getIntMethod · 0.80
getConfigMapMethod · 0.80
setValueMethod · 0.45

Tested by

no test coverage detected