Clean up code and documentation

This commit is contained in:
DawnFire42 2026-06-08 22:20:48 -04:00
parent 4850bcf809
commit 192570eda6
No known key found for this signature in database
GPG key ID: 24BB855EE2911B33
4 changed files with 54 additions and 76 deletions

View file

@ -7,13 +7,14 @@
#ifndef GAMEVIEW_H
#define GAMEVIEW_H
#include "selection_subtype_tally.h"
#include <QGraphicsView>
class GameScene;
class QGridLayout;
class QLabel;
class QRubberBand;
struct SubtypeEntry;
class GameView : public QGraphicsView
{
@ -23,9 +24,10 @@ private:
QRubberBand *rubberBand;
QLabel *dragCountLabel;
QLabel *totalCountLabel;
QWidget *subtypeCountContainer; ///< Container widget for subtype tally display
QGridLayout *subtypeCountLayout; ///< Grid layout for subtype name/count pairs
QWidget *subtypeCountContainer;
QGridLayout *subtypeCountLayout;
QPointF selectionOrigin;
QList<SubtypeEntry> cachedSubtypeEntries; ///< Cached entries to avoid redundant rebuilds
QSize rebuildSubtypeLabels(const QList<SubtypeEntry> &entries);
void clearSubtypeLabels();