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

Method clear

app/src/UI/WindowManager.cpp:882–906  ·  view source on GitHub ↗

* @brief Clears all tracked windows, z-order, and geometry. * Resets the z-order counter. */

Source from the content-addressed store, hash-verified

880 * Resets the z-order counter.
881 */
882void 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.

Callers 15

setActiveGroupIdMethod · 0.45
startFocusCycleMethod · 0.45
rebuildModelMethod · 0.45
onRegistryClearedMethod · 0.45
dismissSearchMethod · 0.45
rebuildTrackersMethod · 0.45
DashboardMethod · 0.45
clearPushTablesMethod · 0.45
resetDataMethod · 0.45
clearPlotDataMethod · 0.45
buildValuePushesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected