QGraphicsItems is not a Qt interface

This commit is contained in:
tooomm 2026-08-28 16:57:29 +02:00
parent b2ce234b96
commit d183291753
7 changed files with 5 additions and 7 deletions

View file

@ -43,6 +43,11 @@ list(REMOVE_DUPLICATES REQUIRED_QT_COMPONENTS)
# Find Qt and all required components including Linguist
find_package(Qt6 REQUIRED COMPONENTS ${REQUIRED_QT_COMPONENTS} Linguist)
message(STATUS "Qt6_VERSION = ${Qt6_VERSION}")
message(STATUS "Qt6_DIR = ${Qt6_DIR}")
message(STATUS "Qt6Core_DIR = ${Qt6Core_DIR}")
message(STATUS "TEST=${TEST}")
message(STATUS "TEST_QT_MODULES=${TEST_QT_MODULES}")
set(COCKATRICE_QT_VERSION_NAME Qt6)

View file

@ -16,7 +16,6 @@ class CardInfo;
class AbstractCardDragItem : public QObject, public QGraphicsItem
{
Q_OBJECT
Q_INTERFACES(QGraphicsItem)
protected:
AbstractCardItem *item;
QPointF hotSpot;

View file

@ -23,7 +23,6 @@ class QString;
class AbstractCounter : public QObject, public QGraphicsItem, public AbstractPlayerComponent
{
Q_OBJECT
Q_INTERFACES(QGraphicsItem)
protected:
PlayerLogic *player;

View file

@ -19,7 +19,6 @@ class PlayerLogic;
class ArrowItem : public QObject, public QGraphicsItem, public IAnimatedItem
{
Q_OBJECT
Q_INTERFACES(QGraphicsItem)
signals:
void requestDeletion(int creatorId, int id);

View file

@ -27,7 +27,6 @@ class GameCommand;
class PhaseButton : public QObject, public QGraphicsItem
{
Q_OBJECT
Q_INTERFACES(QGraphicsItem)
private:
QString name;
bool active, highlightable;
@ -65,7 +64,6 @@ protected:
class PhasesToolbar : public QObject, public QGraphicsItem
{
Q_OBJECT
Q_INTERFACES(QGraphicsItem)
private:
QList<PhaseButton *> buttonList;
PhaseButton *nextTurnButton;

View file

@ -16,7 +16,6 @@
class PlayerArea : public QObject, public QGraphicsItem
{
Q_OBJECT
Q_INTERFACES(QGraphicsItem)
private:
QRectF bRect;
int playerZoneId;

View file

@ -34,7 +34,6 @@ class QGraphicsSceneWheelEvent;
class ZoneViewZone : public SelectZone, public QGraphicsLayoutItem
{
Q_OBJECT
Q_INTERFACES(QGraphicsLayoutItem)
private:
static constexpr int HORIZONTAL_PADDING = 12;
static constexpr int VERTICAL_PADDING = 5;