37ce6f1eda
I didn't read the clang-format documentation properly
17 lines
402 B
C++
17 lines
402 B
C++
#include "lineitem.hpp"
|
|
|
|
LineItem::LineItem() {
|
|
}
|
|
|
|
void LineItem::mouseDragEvent(QGraphicsSceneMouseEvent *e, CropScene *scene) {
|
|
if (init.isNull()) {
|
|
init = e->scenePos();
|
|
line = scene->addLine(QLineF(init, init), scene->pen());
|
|
} else {
|
|
line->setLine(QLineF(init, e->scenePos()));
|
|
}
|
|
}
|
|
|
|
void LineItem::mouseDragEndEvent(QGraphicsSceneMouseEvent *, CropScene *) {
|
|
}
|