Fixes for spline control point.
--HG-- branch : develop
This commit is contained in:
parent
f16d26b659
commit
1cd126856c
|
@ -225,6 +225,12 @@ void VControlPointSpline::mousePressEvent(QGraphicsSceneMouseEvent *event)
|
|||
{
|
||||
SetItemOverrideCursor(this, cursorArrowCloseHand, 1, 1);
|
||||
}
|
||||
|
||||
// Somehow clicking on notselectable object do not clean previous selections.
|
||||
if (not (flags() & ItemIsSelectable) && scene())
|
||||
{
|
||||
scene()->clearSelection();
|
||||
}
|
||||
}
|
||||
VScenePoint::mousePressEvent(event);
|
||||
}
|
||||
|
@ -301,8 +307,4 @@ void VControlPointSpline::setEnabledPoint(bool enable)
|
|||
{
|
||||
setEnabled(enable);
|
||||
controlLine->setEnabled(enable);
|
||||
|
||||
setFlag(QGraphicsItem::ItemIsSelectable, enable);
|
||||
setFlag(QGraphicsItem::ItemIsMovable, enable);
|
||||
setAcceptHoverEvents(enable);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user