valentina/widgets/vmaingraphicsscene.cpp
2013-07-13 13:51:31 +03:00

23 lines
561 B
C++

#include "vmaingraphicsscene.h"
#include <QDebug>
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);
}