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

Method stateSaveInfo

gui/qt/settings.cpp:980–991  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

978}
979
980void MainWindow::stateSaveInfo() {
981 QStringList slotNames;
982 QStringList slotPaths;
983
984 for (int i = 0; i < ui->slotView->rowCount(); i++) {
985 slotNames.append(ui->slotView->item(i, SLOT_NAME_COL)->text());
986 slotPaths.append(ui->slotView->item(i, SLOT_EDIT_COL)->data(Qt::UserRole).toString());
987 }
988
989 m_config->setValue(SETTING_SLOT_NAMES, slotNames);
990 m_config->setValue(SETTING_SLOT_PATHS, slotPaths);
991}
992
993void MainWindow::stateLoadInfo() {
994 QStringList slotNames = m_config->value(SETTING_SLOT_NAMES).toStringList();

Callers

nothing calls this directly

Calls 2

rowCountMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected