MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / setupExternalConnections

Method setupExternalConnections

app/src/Misc/BackupManager.cpp:96–105  ·  view source on GitHub ↗

* @brief Wire ProjectModel signals so snapshots fire automatically. */

Source from the content-addressed store, hash-verified

94 * @brief Wire ProjectModel signals so snapshots fire automatically.
95 */
96void 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

Calls

no outgoing calls

Tested by

no test coverage detected