mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
[VDE] Consolidate statistical analysis into a separate object (#6392)
* [VDE] Consolidate statistical analysis into a separate object so multiple widgets can re-use calculations and calculation is only performed once on data change. * [VDE] Lint. * [VDE] Move struct up to not confuse compiler. * [VDE] NoDiscards * [VDE] Move variables * [VDE] Lint.
This commit is contained in:
parent
364d0ca52b
commit
f0ebd28148
12 changed files with 215 additions and 202 deletions
|
|
@ -24,10 +24,11 @@ public:
|
|||
explicit DeckAnalyticsWidget(QWidget *parent, DeckListModel *deckListModel);
|
||||
void setDeckList(const DeckList &_deckListModel);
|
||||
std::map<int, int> analyzeManaCurve();
|
||||
void refreshDisplays(DeckListModel *_deckListModel);
|
||||
void refreshDisplays();
|
||||
|
||||
private:
|
||||
DeckListModel *deckListModel;
|
||||
DeckListStatisticsAnalyzer *deckListStatisticsAnalyzer;
|
||||
QVBoxLayout *mainLayout;
|
||||
|
||||
QWidget *container;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue