2017-04-29 17:35:42 +02:00
|
|
|
#include "dotitem.hpp"
|
|
|
|
|
2017-05-09 17:26:00 +02:00
|
|
|
DotItem::DotItem() {
|
|
|
|
}
|
2017-04-29 17:35:42 +02:00
|
|
|
|
2017-05-09 17:26:00 +02:00
|
|
|
DotItem::~DotItem() {
|
|
|
|
}
|
2017-04-29 17:35:42 +02:00
|
|
|
|
2017-05-06 13:21:12 +02:00
|
|
|
void DotItem::mouseDragEvent(QGraphicsSceneMouseEvent *e, CropScene *scene) {
|
2017-07-08 21:40:09 +02:00
|
|
|
scene->addEllipse(e->pos().x() - 1.5, e->pos().y() - 1.5, 3, 3, scene->pen(), scene->brush())->setPos(scene->cursorPosition());
|
2017-04-29 17:35:42 +02:00
|
|
|
}
|
|
|
|
|
2017-05-09 17:26:00 +02:00
|
|
|
void DotItem::mouseDragEndEvent(QGraphicsSceneMouseEvent *, CropScene *) {
|
|
|
|
}
|