GraphicEQ states
| 1241 | |
| 1242 | // GraphicEQ states |
| 1243 | void 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 | |
| 1265 | void MainWindow::saveGraphicEQView() |
| 1266 | { |
nothing calls this directly
no test coverage detected