MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / recentSaveInfo

Method recentSaveInfo

gui/qt/settings.cpp:1079–1092  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1077}
1078
1079void MainWindow::recentSaveInfo() {
1080 QStringList paths;
1081 QStringList selects;
1082
1083 if (m_config->value(SETTING_RECENT_SAVE).toBool()) {
1084 for (int i = 0; i < ui->varLoadedView->rowCount(); i++) {
1085 paths.append(ui->varLoadedView->item(i, RECENT_PATH_COL)->text());
1086 selects.append(static_cast<QAbstractButton *>(ui->varLoadedView->cellWidget(i, RECENT_SELECT_COL))->isChecked() ? TXT_YES : TXT_NO);
1087 }
1088 }
1089
1090 m_config->setValue(SETTING_RECENT_PATHS, paths);
1091 m_config->setValue(SETTING_RECENT_SELECT, selects);
1092}
1093
1094void MainWindow::recentLoadInfo() {
1095 QStringList paths = m_config->value(SETTING_RECENT_PATHS).toStringList();

Callers

nothing calls this directly

Calls 1

rowCountMethod · 0.80

Tested by

no test coverage detected