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

Method deleteTable

app/src/DataModel/ProjectModel.cpp:5286–5295  ·  view source on GitHub ↗

* @brief Deletes the table with the given full path. */

Source from the content-addressed store, hash-verified

5284 * @brief Deletes the table with the given full path.
5285 */
5286void DataModel::ProjectModel::deleteTable(const QString& name)
5287{
5288 const int idx = findTableIndexByPath(name);
5289 if (idx < 0)
5290 return;
5291
5292 m_tables.erase(m_tables.begin() + idx);
5293 setModified(true);
5294 Q_EMIT tablesChanged();
5295}
5296
5297/**
5298 * @brief Renames a table's leaf name (no-op if the new leaf collides within the same folder).

Callers 1

tableDeleteMethod · 0.80

Calls 1

beginMethod · 0.80

Tested by

no test coverage detected