[Refactor] Add card name, printing id, and color to CardState (#7433)

Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
This commit is contained in:
BruebachL 2026-10-31 18:44:13 +01:00 • committed by GitHub
parent edb5caec8a
commit 5d0d466930
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 35 additions and 8 deletions

View file

@ -23,7 +23,6 @@ class AbstractCardItem : public ArrowTarget, public IAnimatedItem
protected:
CardState *state;
int tapAngle;
QString color;
QColor bgColor;
private:
@ -114,9 +113,9 @@ public:
{
return isHovered;
}
QString getColor() const
[[nodiscard]] QString getColor() const
{
return color;
return state->getColor();
}
void setColor(const QString &_color);
bool getTapped() const