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

Method setWindowState

app/src/UI/Taskbar.cpp:832–843  ·  view source on GitHub ↗

* @brief Updates the window state for a given internal ID. */

Source from the content-addressed store, hash-verified

830 * @brief Updates the window state for a given internal ID.
831 */
832void UI::Taskbar::setWindowState(const int id, const UI::TaskbarModel::WindowState state)
833{
834 QStandardItem* item = findItemByWindowId(id);
835 if (!item)
836 return;
837
838 item->setData(state, UI::TaskbarModel::WindowStateRole);
839 Q_EMIT windowStatesChanged();
840
841 if (m_windowIDs.count() >= m_taskbarButtons->rowCount() && m_windowManager)
842 m_windowManager->triggerLayoutUpdate();
843}
844
845//--------------------------------------------------------------------------------------------------
846// General (full) model generation function

Callers

nothing calls this directly

Calls 3

rowCountMethod · 0.80
triggerLayoutUpdateMethod · 0.80
countMethod · 0.45

Tested by

no test coverage detected