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

Method taskbarWindowIds

app/src/UI/Taskbar.cpp:280–298  ·  view source on GitHub ↗

* @brief Returns the windowIds of the visible taskbar buttons in row order. */

Source from the content-addressed store, hash-verified

278 * @brief Returns the windowIds of the visible taskbar buttons in row order.
279 */
280QVector<int> UI::Taskbar::taskbarWindowIds() const
281{
282 QVector<int> ids;
283 if (!m_taskbarButtons)
284 return ids;
285
286 ids.reserve(m_taskbarButtons->rowCount());
287 for (int i = 0; i < m_taskbarButtons->rowCount(); ++i) {
288 auto* row = m_taskbarButtons->item(i);
289 if (!row)
290 continue;
291
292 const int wid = row->data(TaskbarModel::WindowIdRole).toInt();
293 if (wid >= 0)
294 ids.append(wid);
295 }
296
297 return ids;
298}
299
300/**
301 * @brief Returns the current state of a window widget.

Callers

nothing calls this directly

Calls 3

rowCountMethod · 0.80
dataMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected