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

Method setActiveWindow

app/src/UI/Taskbar.cpp:671–681  ·  view source on GitHub ↗

* @brief Sets the currently active window in the UI. */

Source from the content-addressed store, hash-verified

669 * @brief Sets the currently active window in the UI.
670 */
671void UI::Taskbar::setActiveWindow(QQuickItem* window)
672{
673 if (m_activeWindow == window)
674 return;
675
676 m_activeWindow = window;
677 if (m_windowManager)
678 m_windowManager->bringToFront(window);
679
680 Q_EMIT activeWindowChanged();
681}
682
683/**
684 * @brief Unregisters a previously registered QML window.

Callers 2

startManualPressMethod · 0.80
mousePressEventMethod · 0.80

Calls 1

bringToFrontMethod · 0.80

Tested by

no test coverage detected