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

Method destroyWidget

app/src/UI/WidgetRegistry.cpp:202–214  ·  view source on GitHub ↗

* @brief Destroys a widget and removes it from the registry. */

Source from the content-addressed store, hash-verified

200 * @brief Destroys a widget and removes it from the registry.
201 */
202void UI::WidgetRegistry::destroyWidget(UI::WidgetID id)
203{
204 if (!m_widgets.contains(id))
205 return;
206
207 Q_EMIT widgetDestroyed(id);
208
209 m_widgets.remove(id);
210 m_widgetOrder.removeOne(id);
211
212 if (m_batchDepth > 0)
213 m_batchHadChanges = true;
214}
215
216/**
217 * @brief Updates widget metadata.

Callers

nothing calls this directly

Calls 2

containsMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected