~neon/klickety/master

« back to all changes in this revision

Viewing changes to src/piece.h

  • Committer: Friedrich W. H. Kossebau
  • Date: 2020-12-31 15:07:29 UTC
  • Revision ID: git-v1:207690953dcba5aebc6cbe4dbc4852d18c0c53f2
Change last Q_DECL_OVERRIDE to override

GIT_SILENT

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
        /** Destructor */
25
25
        ~Piece();
26
26
        /** Reimplemented for using bounding rect for detecting hovering and mouse clicking */
27
 
        QPainterPath shape() const Q_DECL_OVERRIDE;
 
27
        QPainterPath shape() const override;
28
28
        /** The current column in the game scene, from left to right, starts from 0 */
29
29
        int m_x;
30
30
        /** The current row in the game scene, from top to bottom, starts from 0 */
46
46
        void pieceUnhovered( int x, int y );
47
47
    protected:
48
48
        /** Reimplemented for emitting signals if this piece is hovered */
49
 
        void hoverEnterEvent( QGraphicsSceneHoverEvent* event ) Q_DECL_OVERRIDE;
 
49
        void hoverEnterEvent( QGraphicsSceneHoverEvent* event ) override;
50
50
        /** Reimplemented for emitting signals if this piece is unhovered */
51
 
        void hoverLeaveEvent( QGraphicsSceneHoverEvent* event ) Q_DECL_OVERRIDE;
 
51
        void hoverLeaveEvent( QGraphicsSceneHoverEvent* event ) override;
52
52
        /** Reimplemented for emitting signals if any mouse click event */
53
 
        void mousePressEvent( QGraphicsSceneMouseEvent* event ) Q_DECL_OVERRIDE;
 
53
        void mousePressEvent( QGraphicsSceneMouseEvent* event ) override;
54
54
};
55
55
 
56
56
#endif // PIECE_H