| 978 | } |
| 979 | |
| 980 | void 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 | |
| 993 | void MainWindow::stateLoadInfo() { |
| 994 | QStringList slotNames = m_config->value(SETTING_SLOT_NAMES).toStringList(); |