* @brief Brings a window to the front by increasing its z-order. */
| 1090 | * @brief Brings a window to the front by increasing its z-order. |
| 1091 | */ |
| 1092 | void UI::WindowManager::bringToFront(QQuickItem* item) |
| 1093 | { |
| 1094 | if (!item) |
| 1095 | return; |
| 1096 | |
| 1097 | m_windowZ[item] = ++m_zCounter; |
| 1098 | item->setZ(m_windowZ[item]); |
| 1099 | |
| 1100 | Q_EMIT zCounterChanged(); |
| 1101 | Q_EMIT zOrderChanged(item); |
| 1102 | } |
| 1103 | |
| 1104 | /** |
| 1105 | * @brief Sets the associated Taskbar instance for window management. |