Changeset View
Changeset View
Standalone View
Standalone View
libkcardgame/kcard.h
Show All 31 Lines | 31 | { | |||
---|---|---|---|---|---|
32 | Q_OBJECT | 32 | Q_OBJECT | ||
33 | 33 | | |||
34 | private: | 34 | private: | ||
35 | KCard( quint32 id, KAbstractCardDeck * deck ); | 35 | KCard( quint32 id, KAbstractCardDeck * deck ); | ||
36 | virtual ~KCard(); | 36 | virtual ~KCard(); | ||
37 | 37 | | |||
38 | public: | 38 | public: | ||
39 | enum { Type = QGraphicsItem::UserType + 1 }; | 39 | enum { Type = QGraphicsItem::UserType + 1 }; | ||
40 | int type() const Q_DECL_OVERRIDE; | 40 | int type() const override; | ||
41 | 41 | | |||
42 | void paint( QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget = nullptr ) Q_DECL_OVERRIDE; | 42 | void paint( QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget = nullptr ) override; | ||
43 | 43 | | |||
44 | quint32 id() const; | 44 | quint32 id() const; | ||
45 | int rank() const; | 45 | int rank() const; | ||
46 | int suit() const; | 46 | int suit() const; | ||
47 | int color() const; | 47 | int color() const; | ||
48 | 48 | | |||
49 | KCardPile * pile() const; | 49 | KCardPile * pile() const; | ||
50 | 50 | | |||
Show All 34 Lines |