* @brief Wire ProjectModel signals so snapshots fire automatically. */
| 94 | * @brief Wire ProjectModel signals so snapshots fire automatically. |
| 95 | */ |
| 96 | void Misc::BackupManager::setupExternalConnections() |
| 97 | { |
| 98 | auto& pm = DataModel::ProjectModel::instance(); |
| 99 | connect( |
| 100 | &pm, &DataModel::ProjectModel::jsonFileChanged, this, &BackupManager::onProjectFileChanged); |
| 101 | connect( |
| 102 | &pm, &DataModel::ProjectModel::modifiedChanged, this, &BackupManager::onProjectModifiedChanged); |
| 103 | connect( |
| 104 | &pm, &DataModel::ProjectModel::contentTouched, this, &BackupManager::onProjectContentTouched); |
| 105 | } |
| 106 | |
| 107 | //-------------------------------------------------------------------------------------------------- |
| 108 | // Snapshot / restore / list |
no outgoing calls
no test coverage detected