Remove inactive counters submenus from the player counters menu

This commit is contained in:
DawnFire42 2026-07-28 19:05:13 -04:00
parent d1c73e2ee5
commit 08ec0cc5ee
No known key found for this signature in database
GPG key ID: 24BB855EE2911B33
4 changed files with 68 additions and 18 deletions

View file

@ -162,6 +162,13 @@ private:
bool mirrored;
bool handVisible = false;
/**
* @brief Returns the menu action a counter's submenu is inserted before to keep the
* Player -> Counters menu ordered by counter id, or nullptr to append.
*/
[[nodiscard]] QAction *counterMenuInsertAnchor(int counterId) const;
/** @brief Adds or removes a counter's submenu in the Player -> Counters menu. */
void setCounterMenuRegistered(AbstractCounter *widget, bool registered);
/** @brief Returns the command zone's display height, or 0 if hidden. */
[[nodiscard]] qreal totalCommandZoneHeight() const;
/** @brief Positions the command and stack zones vertically starting from base, updating base.y. */