Add subtype breakdown counter for card selection

Display a categorized count of creature subtypes (and other card type
  subtypes) when multiple cards are selected. The breakdown appears above
  the total selection counter in the bottom-right corner.

  Subtypes are grouped by main card type and sorted by frequency, with
  the most common subtypes positioned adjacent to the total count for
  quick reference. The feature can be toggled via a new checkbox in
  Settings > User Interface.
This commit is contained in:
DawnFire42 2026-05-15 20:49:59 -04:00
parent e28f31c93e
commit ebbab20b2a
No known key found for this signature in database
GPG key ID: 24BB855EE2911B33
7 changed files with 214 additions and 20 deletions

View file

@ -21,8 +21,12 @@ private:
QRubberBand *rubberBand;
QLabel *dragCountLabel;
QLabel *totalCountLabel;
QLabel *subtypeCountLabel; ///< Label displaying subtype breakdown for selected cards
QPointF selectionOrigin;
/** @brief Builds formatted text showing subtype counts for all selected cards */
QString buildSubtypeCountText() const;
protected:
void resizeEvent(QResizeEvent *event) override;
private slots: