* @brief Renames a user-defined workspace. */
| 1651 | * @brief Renames a user-defined workspace. |
| 1652 | */ |
| 1653 | void UI::Taskbar::renameWorkspace(int workspaceId, const QString& name) |
| 1654 | { |
| 1655 | if (workspaceId < WorkspaceIds::AutoStart) |
| 1656 | return; |
| 1657 | |
| 1658 | DataModel::ProjectModel::instance().renameWorkspace(workspaceId, name); |
| 1659 | Q_EMIT workspaceModelChanged(); |
| 1660 | } |
| 1661 | |
| 1662 | /** |
| 1663 | * @brief Adds the widget identified by windowId to the active workspace. |