* @brief Returns the runtime index of the action with the given public @p actionId, or -1. */
| 576 | * @brief Returns the runtime index of the action with the given public @p actionId, or -1. |
| 577 | */ |
| 578 | int UI::Dashboard::actionIndexForId(int actionId) const noexcept |
| 579 | { |
| 580 | for (int i = 0; i < m_actions.count(); ++i) |
| 581 | if (m_actions.at(i).actionId == actionId) |
| 582 | return i; |
| 583 | |
| 584 | return -1; |
| 585 | } |
| 586 | |
| 587 | /** |
| 588 | * @brief Retrieves a map of all widgets/windows in the dashboard. |
no test coverage detected