* @brief Clears all tracked windows, z-order, and geometry. * Resets the z-order counter. */
| 880 | * Resets the z-order counter. |
| 881 | */ |
| 882 | void UI::WindowManager::clear() |
| 883 | { |
| 884 | m_zCounter = 1; |
| 885 | m_windowZ.clear(); |
| 886 | m_windows.clear(); |
| 887 | m_windowOrder.clear(); |
| 888 | m_dragWindow = nullptr; |
| 889 | m_targetWindow = nullptr; |
| 890 | m_resizeWindow = nullptr; |
| 891 | m_focusedWindow = nullptr; |
| 892 | m_layoutRestored = false; |
| 893 | m_userReordered = false; |
| 894 | m_suppressGeometrySignal = false; |
| 895 | m_manualCanvasWidth = 0; |
| 896 | m_manualCanvasHeight = 0; |
| 897 | m_lastCanvasWidth = 0; |
| 898 | m_lastCanvasHeight = 0; |
| 899 | m_snapIndicatorVisible = false; |
| 900 | m_manualGeometries.clear(); |
| 901 | m_manualMargins.clear(); |
| 902 | m_pendingGeometries.clear(); |
| 903 | |
| 904 | Q_EMIT zCounterChanged(); |
| 905 | Q_EMIT snapIndicatorChanged(); |
| 906 | } |
| 907 | |
| 908 | /** |
| 909 | * @brief Loads the appropriate layout based on current settings. |
no outgoing calls
no test coverage detected