Hide options if user click on visualization's objects.
--HG-- branch : develop
This commit is contained in:
parent
c3d5688f28
commit
5f977c640e
|
@ -254,10 +254,18 @@ void VMainGraphicsView::mousePressEvent(QMouseEvent *mousePress)
|
|||
}
|
||||
for (int i = 0; i < list.size(); ++i)
|
||||
{
|
||||
if (list.at(i)->type() <= VSimpleCurve::Type && list.at(i)->type() > QGraphicsItem::UserType)
|
||||
if (qApp->getCurrentScene()->items().contains(list.at(i)))
|
||||
{
|
||||
emit itemClicked(list.at(i));
|
||||
break;
|
||||
if (list.at(i)->type() <= VSimpleCurve::Type &&
|
||||
list.at(i)->type() > QGraphicsItem::UserType)
|
||||
{
|
||||
emit itemClicked(list.at(i));
|
||||
break;
|
||||
}
|
||||
else
|
||||
{
|
||||
emit itemClicked(nullptr);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user