[Game][Menus] Make Menus accept PlayerGraphicsItem instead of PlayerLogic (#6945)

* [Game][Player] Split Player into PlayerLogic/PlayerGraphicsItem

Took 4 minutes

Took 58 seconds


Took 2 minutes

* [Game][Menus] Make Menus accept PlayerGraphicsItem instead of PlayerLogic

Took 7 minutes

Took 4 minutes

Took 9 seconds

Took 2 minutes


Took 5 minutes

Took 58 seconds

---------

Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
This commit is contained in:
BruebachL 2026-06-09 08:07:06 +02:00 committed by Vasco Guerreiro Vintém Morais
parent 90a49936d7
commit f80b43139d
15 changed files with 93 additions and 78 deletions

View file

@ -11,19 +11,19 @@
#include <QMenu>
class PlayerLogic;
class PlayerGraphicsItem;
class SideboardMenu : public QMenu, public AbstractPlayerComponent
{
Q_OBJECT
public:
explicit SideboardMenu(PlayerLogic *player, QMenu *playerMenu);
explicit SideboardMenu(PlayerGraphicsItem *player, QMenu *playerMenu);
void retranslateUi() override;
void setShortcutsActive() override;
void setShortcutsInactive() override;
private:
PlayerLogic *player;
PlayerGraphicsItem *player;
QAction *aViewSideboard;
};