Skip to content

Instantly share code, notes, and snippets.

@Wohlstand
Created November 2, 2014 09:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Wohlstand/10f03365a50965a2c136 to your computer and use it in GitHub Desktop.
Save Wohlstand/10f03365a50965a2c136 to your computer and use it in GitHub Desktop.
EditMode class
#include "../lvlscene.h"
#include <QObject>
#include <QGraphicsSceneMouseEvent>
#include <QKeyEvent>
class EditMode : public QObject
{
Q_OBJECT
public:
explicit EditMode(LvlScene *ParentScene = 0, QObject *parent = 0);
virtual void mousePress(QGraphicsSceneMouseEvent *mouseEvent);
virtual void mouseMove(QGraphicsSceneMouseEvent *mouseEvent);
virtual void mouseRelease(QGraphicsSceneMouseEvent *mouseEvent);
virtual void keyPress(QKeyEvent *keyEvent);
virtual void keyRelease(QKeyEvent *keyEvent);
signals:
public slots:
private:
LvlScene *scene;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment