Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (19 sloc) 534 Bytes
#ifndef DRAWSCENE_H
#define DRAWSCENE_H
#include <QGraphicsScene>
#include <QGraphicsView>
class drawscene : public QGraphicsScene
{
public:
drawscene();
void init();
void mousePressEvent ( QGraphicsSceneMouseEvent * mouseEvent );
void mouseMoveEvent ( QGraphicsSceneMouseEvent * mouseEvent );
void mouseReleaseEvent ( QGraphicsSceneMouseEvent * mouseEvent );
void setpencolor(QColor color){pencolor=color;};
int oldx,oldy;
bool mousereleased;
private:
QColor pencolor;
};
#endif // DRAWSCENE_H