diff --git a/cockatrice/src/abstractcarddragitem.h b/cockatrice/src/abstractcarddragitem.h index e574f6c2..d7c3a40e 100644 --- a/cockatrice/src/abstractcarddragitem.h +++ b/cockatrice/src/abstractcarddragitem.h @@ -9,6 +9,7 @@ class CardInfo; class AbstractCardDragItem : public QObject, public QGraphicsItem { Q_OBJECT + Q_INTERFACES(QGraphicsItem) protected: AbstractCardItem *item; QPointF hotSpot; diff --git a/cockatrice/src/abstractcounter.h b/cockatrice/src/abstractcounter.h index 713c11c5..174cbf84 100644 --- a/cockatrice/src/abstractcounter.h +++ b/cockatrice/src/abstractcounter.h @@ -9,6 +9,7 @@ class QAction; class AbstractCounter : public QObject, public QGraphicsItem { Q_OBJECT + Q_INTERFACES(QGraphicsItem) protected: Player *player; int id; diff --git a/cockatrice/src/arrowitem.h b/cockatrice/src/arrowitem.h index 67517404..7e897d31 100644 --- a/cockatrice/src/arrowitem.h +++ b/cockatrice/src/arrowitem.h @@ -11,6 +11,7 @@ class ArrowTarget; class ArrowItem : public QObject, public QGraphicsItem { Q_OBJECT + Q_INTERFACES(QGraphicsItem) private: QPainterPath path; QMenu *menu; diff --git a/cockatrice/src/phasestoolbar.h b/cockatrice/src/phasestoolbar.h index 852f4f58..a91b020c 100644 --- a/cockatrice/src/phasestoolbar.h +++ b/cockatrice/src/phasestoolbar.h @@ -11,6 +11,7 @@ class GameCommand; class PhaseButton : public QObject, public QGraphicsItem { Q_OBJECT + Q_INTERFACES(QGraphicsItem) private: QString name; bool active, highlightable; @@ -39,6 +40,7 @@ protected: class PhasesToolbar : public QObject, public QGraphicsItem { Q_OBJECT + Q_INTERFACES(QGraphicsItem) private: QList buttonList; PhaseButton *nextTurnButton; diff --git a/cockatrice/src/player.h b/cockatrice/src/player.h index 9eed7c07..d8396e4d 100644 --- a/cockatrice/src/player.h +++ b/cockatrice/src/player.h @@ -58,7 +58,8 @@ class PendingCommand; class PlayerArea : public QObject, public QGraphicsItem { Q_OBJECT -private: + Q_INTERFACES(QGraphicsItem) +private: QBrush bgPixmapBrush; QRectF bRect; private slots: @@ -76,6 +77,7 @@ public: class Player : public QObject, public QGraphicsItem { Q_OBJECT + Q_INTERFACES(QGraphicsItem) signals: void openDeckEditor(const DeckLoader *deck); void newCardAdded(AbstractCardItem *card); diff --git a/cockatrice/src/zoneviewzone.h b/cockatrice/src/zoneviewzone.h index 727148a8..43134c78 100644 --- a/cockatrice/src/zoneviewzone.h +++ b/cockatrice/src/zoneviewzone.h @@ -11,6 +11,7 @@ class QGraphicsSceneWheelEvent; class ZoneViewZone : public SelectZone, public QGraphicsLayoutItem { Q_OBJECT + Q_INTERFACES(QGraphicsLayoutItem) private: QRectF bRect, optimumRect; int minRows, numberCards;