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 Qt and all required components including Linguist
find_package(Qt6 REQUIRED COMPONENTS ${REQUIRED_QT_COMPONENTS} 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) set(COCKATRICE_QT_VERSION_NAME Qt6)

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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