KShare/cropeditor/drawing/dotitem.cpp

15 lines
353 B
C++
Raw Normal View History

#include "dotitem.hpp"
DotItem::DotItem() {
}
DotItem::~DotItem() {
}
2017-05-06 13:21:12 +02:00
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(e->scenePos());
}
void DotItem::mouseDragEndEvent(QGraphicsSceneMouseEvent *, CropScene *) {
}