KShare/cropeditor/drawing/dotitem.cpp

19 lines
353 B
C++
Raw Normal View History

#include "dotitem.hpp"
DotItem::DotItem()
{
}
DotItem::~DotItem()
{
}
void DotItem::mouseDragEvent(QGraphicsSceneMouseEvent *e, CropScene *scene)
{
2017-04-29 23:00:32 +02:00
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 *)
{
}