Fix Q_INTERFACES warnings

Fix #88
This commit is contained in:
Daenyth 2014-06-22 22:32:53 -04:00
parent 4574df0a2e
commit ea08fe168c
6 changed files with 9 additions and 1 deletions

View file

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

View file

@ -9,6 +9,7 @@ class QAction;
class AbstractCounter : public QObject, public QGraphicsItem {
Q_OBJECT
Q_INTERFACES(QGraphicsItem)
protected:
Player *player;
int id;

View file

@ -11,6 +11,7 @@ class ArrowTarget;
class ArrowItem : public QObject, public QGraphicsItem {
Q_OBJECT
Q_INTERFACES(QGraphicsItem)
private:
QPainterPath path;
QMenu *menu;

View file

@ -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<PhaseButton *> buttonList;
PhaseButton *nextTurnButton;

View file

@ -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);

View file

@ -11,6 +11,7 @@ class QGraphicsSceneWheelEvent;
class ZoneViewZone : public SelectZone, public QGraphicsLayoutItem {
Q_OBJECT
Q_INTERFACES(QGraphicsLayoutItem)
private:
QRectF bRect, optimumRect;
int minRows, numberCards;