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

Method bringToFront

app/src/UI/WindowManager.cpp:1092–1102  ·  view source on GitHub ↗

* @brief Brings a window to the front by increasing its z-order. */

Source from the content-addressed store, hash-verified

1090 * @brief Brings a window to the front by increasing its z-order.
1091 */
1092void 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.

Callers 1

setActiveWindowMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected