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

Method setTreeExpansion

app/src/DataModel/ProjectModel.cpp:1451–1459  ·  view source on GitHub ↗

* @brief Stores the editor tree expansion map, marking the project dirty when it changed. */

Source from the content-addressed store, hash-verified

1449 * @brief Stores the editor tree expansion map, marking the project dirty when it changed.
1450 */
1451void DataModel::ProjectModel::setTreeExpansion(const QJsonObject& expansion)
1452{
1453 if (m_treeExpansion == expansion)
1454 return;
1455
1456 m_treeExpansion = expansion;
1457 setModified(true);
1458 scheduleAutoSave();
1459}
1460
1461/**
1462 * @brief Stable-id keyed Project Overview diagram node collapse map (persisted in the file).

Callers 2

buildTreeModelMethod · 0.80
persistTreeExpansionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected