mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-04 20:43:54 -07:00
improved rubber band drag
This commit is contained in:
parent
99387861cd
commit
99c0a41d18
15 changed files with 139 additions and 14 deletions
18
cockatrice/src/selectzone.h
Normal file
18
cockatrice/src/selectzone.h
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue