* @brief Sets the currently active window in the UI. */
| 669 | * @brief Sets the currently active window in the UI. |
| 670 | */ |
| 671 | void 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. |
no test coverage detected