improved rubber band drag

This commit is contained in:
Max-Wilhelm Bruker 2010-12-14 04:37:13 +01:00
parent 99387861cd
commit 99c0a41d18
15 changed files with 139 additions and 14 deletions

View file

@ -0,0 +1,18 @@
#ifndef SELECTZONE_H
#define SELECTZONE_H
#include "cardzone.h"
class SelectZone : public CardZone {
Q_OBJECT
private:
QPointF selectionOrigin;
protected:
void mouseMoveEvent(QGraphicsSceneMouseEvent *event);
void mousePressEvent(QGraphicsSceneMouseEvent *event);
void mouseReleaseEvent(QGraphicsSceneMouseEvent *event);
public:
SelectZone(Player *_player, const QString &_name, bool _hasCardAttr, bool _isShufflable, bool _contentsKnown, QGraphicsItem *parent = 0, bool isView = false);
};
#endif