Don't move locked strokes

preferencesAboutTextFull
Craig Watson 8 years ago
parent 86e2bf93cf
commit 334ef904f4
  1. 2
      src/domain/UBGraphicsStrokesGroup.cpp

@ -128,11 +128,13 @@ void UBGraphicsStrokesGroup::mousePressEvent(QGraphicsSceneMouseEvent *event)
void UBGraphicsStrokesGroup::mouseMoveEvent(QGraphicsSceneMouseEvent *event) void UBGraphicsStrokesGroup::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
{ {
if (!isLocked(this)) {
QGraphicsItemGroup::mouseMoveEvent(event); QGraphicsItemGroup::mouseMoveEvent(event);
event->accept(); event->accept();
setSelected(false); setSelected(false);
} }
}
void UBGraphicsStrokesGroup::mouseReleaseEvent(QGraphicsSceneMouseEvent *event) void UBGraphicsStrokesGroup::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
{ {

Loading…
Cancel
Save