PR comments

This commit is contained in:
RickyRister 2026-08-02 18:54:56 -07:00
parent 9ac9e761da
commit 10f97f9ef8
3 changed files with 6 additions and 5 deletions

View file

@ -53,5 +53,5 @@ void TallyMenu::retranslateUi()
aTallyNone->setText(tr("None"));
aTallySubtypes->setText(tr("Subtypes"));
aTallyTotalPower->setText(tr("Total power"));
aTallyTotalPower->setText(tr("Total Power"));
}

View file

@ -4,6 +4,7 @@
#include <QCoreApplication>
#include <QList>
#include <algorithm>
static int sumPowers(const QList<CardItem *> &cards)
{
@ -32,4 +33,4 @@ QList<TallyRow> StatsTally::computeTotalPower(const QList<CardItem *> &cards)
QString name = QCoreApplication::translate("StatsTally", "Total Power");
return {TallyRow{name, QString::number(total)}};
}
}

View file

@ -1,5 +1,5 @@
#ifndef COCKATRICE_POWER_TALLY_H
#define COCKATRICE_POWER_TALLY_H
#ifndef COCKATRICE_STATS_TALLY_H
#define COCKATRICE_STATS_TALLY_H
#include "tally.h"
/**
@ -18,4 +18,4 @@ QList<TallyRow> computeTotalPower(const QList<CardItem *> &cards);
} // namespace StatsTally
#endif // COCKATRICE_POWER_TALLY_H
#endif // COCKATRICE_STATS_TALLY_H