KShare/cropeditor/drawing/dotitem.cpp
2017-07-08 21:40:09 +02:00

15 lines
363 B
C++

#include "dotitem.hpp"
DotItem::DotItem() {
}
DotItem::~DotItem() {
}
void DotItem::mouseDragEvent(QGraphicsSceneMouseEvent *e, CropScene *scene) {
scene->addEllipse(e->pos().x() - 1.5, e->pos().y() - 1.5, 3, 3, scene->pen(), scene->brush())->setPos(scene->cursorPosition());
}
void DotItem::mouseDragEndEvent(QGraphicsSceneMouseEvent *, CropScene *) {
}