* @brief Redirects the workspace to a transient path without persisting it (benchmark use). */
| 107 | * @brief Redirects the workspace to a transient path without persisting it (benchmark use). |
| 108 | */ |
| 109 | void Misc::WorkspaceManager::setTemporaryPath(const QString& path) |
| 110 | { |
| 111 | Q_ASSERT(!path.isEmpty()); |
| 112 | if (m_temporaryActive) |
| 113 | return; |
| 114 | |
| 115 | m_savedPath = m_path; |
| 116 | m_path = path; |
| 117 | m_temporaryActive = true; |
| 118 | Q_EMIT pathChanged(); |
| 119 | } |
| 120 | |
| 121 | /** |
| 122 | * @brief Restores the workspace path saved by setTemporaryPath(). |