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

Method unregisterWindow

app/src/UI/Taskbar.cpp:686–703  ·  view source on GitHub ↗

* @brief Unregisters a previously registered QML window. */

Source from the content-addressed store, hash-verified

684 * @brief Unregisters a previously registered QML window.
685 */
686void UI::Taskbar::unregisterWindow(QQuickItem* window)
687{
688 if (m_windowIDs.contains(window)) {
689 auto it = m_windowConnections.find(window);
690 if (it != m_windowConnections.end()) {
691 disconnect(*it);
692 m_windowConnections.erase(it);
693 }
694
695 m_focusCycleQueue.removeAll(window);
696
697 m_windowIDs.remove(window);
698 if (m_windowManager)
699 m_windowManager->unregisterWindow(window);
700
701 Q_EMIT registeredWindowsChanged();
702 }
703}
704
705/**
706 * @brief Sets the window manager object, which is used to syncronize taskbar

Callers

nothing calls this directly

Calls 3

findMethod · 0.80
containsMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected