summaryrefslogtreecommitdiffstats
path: root/examples/animation/stickman/graphicsview.h
blob: 58ed95b043474bea6279ace895a2b61e61279d04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef GRAPHICSVIEW_H
#define GRAPHICSVIEW

#include <QtGui/QGraphicsView>

class MainWindow;
class GraphicsView: public QGraphicsView
{
    Q_OBJECT
public:
    GraphicsView(QWidget *parent = 0);

protected:
    void keyPressEvent(QKeyEvent *);

signals:
    void keyPressed(int key);

private:
    MainWindow *m_editor;
};

#endif