* @brief Updates the window state for a given internal ID. */
| 830 | * @brief Updates the window state for a given internal ID. |
| 831 | */ |
| 832 | void 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 |
nothing calls this directly
no test coverage detected