valentina/widgets/vmaingraphicsscene.cpp

22 lines
543 B
C++
Raw Normal View History

2013-07-03 14:29:26 +02:00
#include "vmaingraphicsscene.h"
VMainGraphicsScene::VMainGraphicsScene():QGraphicsScene()
{
}
VMainGraphicsScene::VMainGraphicsScene(const QRectF & sceneRect, QObject * parent):QGraphicsScene ( sceneRect, parent )
{
}
void VMainGraphicsScene::mouseMoveEvent(QGraphicsSceneMouseEvent* event){
emit mouseMove(event->scenePos());
QGraphicsScene::mouseMoveEvent(event);
}
void VMainGraphicsScene::mousePressEvent(QGraphicsSceneMouseEvent *event){
emit mousePress(event->scenePos());
QGraphicsScene::mousePressEvent(event);
}