Changeset View
Changeset View
Standalone View
Standalone View
libkcardgame/kcardscene.h
Show First 20 Lines • Show All 129 Lines • ▼ Show 20 Line(s) | 126 | protected: | |||
---|---|---|---|---|---|
130 | bool isKeyboardModeActive() const; | 130 | bool isKeyboardModeActive() const; | ||
131 | 131 | | |||
132 | virtual bool allowedToAdd( const KCardPile * pile, const QList<KCard*> & cards ) const; | 132 | virtual bool allowedToAdd( const KCardPile * pile, const QList<KCard*> & cards ) const; | ||
133 | virtual bool allowedToRemove( const KCardPile * pile, const KCard * card ) const; | 133 | virtual bool allowedToRemove( const KCardPile * pile, const KCard * card ) const; | ||
134 | 134 | | |||
135 | virtual void cardsDroppedOnPile( const QList<KCard*> & cards, KCardPile * pile ); | 135 | virtual void cardsDroppedOnPile( const QList<KCard*> & cards, KCardPile * pile ); | ||
136 | virtual void cardsMoved( const QList<KCard*> & cards, KCardPile * oldPile, KCardPile * newPile ); | 136 | virtual void cardsMoved( const QList<KCard*> & cards, KCardPile * oldPile, KCardPile * newPile ); | ||
137 | 137 | | |||
138 | void mouseDoubleClickEvent( QGraphicsSceneMouseEvent * e ) Q_DECL_OVERRIDE; | 138 | void mouseDoubleClickEvent( QGraphicsSceneMouseEvent * e ) override; | ||
139 | void mouseMoveEvent( QGraphicsSceneMouseEvent * e ) Q_DECL_OVERRIDE; | 139 | void mouseMoveEvent( QGraphicsSceneMouseEvent * e ) override; | ||
140 | void mousePressEvent( QGraphicsSceneMouseEvent * e ) Q_DECL_OVERRIDE; | 140 | void mousePressEvent( QGraphicsSceneMouseEvent * e ) override; | ||
141 | void mouseReleaseEvent( QGraphicsSceneMouseEvent * e ) Q_DECL_OVERRIDE; | 141 | void mouseReleaseEvent( QGraphicsSceneMouseEvent * e ) override; | ||
142 | void wheelEvent( QGraphicsSceneWheelEvent * e ) Q_DECL_OVERRIDE; | 142 | void wheelEvent( QGraphicsSceneWheelEvent * e ) override; | ||
143 | 143 | | |||
144 | void drawForeground( QPainter * painter, const QRectF & rect ) Q_DECL_OVERRIDE; | 144 | void drawForeground( QPainter * painter, const QRectF & rect ) override; | ||
145 | 145 | | |||
146 | private: | 146 | private: | ||
147 | friend class KCardScenePrivate; | 147 | friend class KCardScenePrivate; | ||
148 | class KCardScenePrivate * const d; | 148 | class KCardScenePrivate * const d; | ||
149 | }; | 149 | }; | ||
150 | 150 | | |||
151 | Q_DECLARE_OPERATORS_FOR_FLAGS( KCardScene::SceneAlignment ) | 151 | Q_DECLARE_OPERATORS_FOR_FLAGS( KCardScene::SceneAlignment ) | ||
152 | 152 | | |||
153 | #endif | 153 | #endif |