* @brief Deletes the table with the given full path. */
| 5284 | * @brief Deletes the table with the given full path. |
| 5285 | */ |
| 5286 | void 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). |