Added VSimpleCurve to list of valid objects to call a visualization.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2016-05-20 14:42:48 +03:00
parent 05fdbcf8f5
commit 7aca6d8179

View File

@ -32,7 +32,7 @@
#include <QWheelEvent>
#include <QApplication>
#include <QScrollBar>
#include "vsimplepoint.h"
#include "vsimplecurve.h"
#include "vmaingraphicsscene.h"
#include <QGraphicsItem>
@ -402,7 +402,7 @@ void VMainGraphicsView::mousePressEvent(QMouseEvent *mousePress)
{
if (this->scene()->items().contains(list.at(i)))
{
if (list.at(i)->type() <= VSimplePoint::Type &&
if (list.at(i)->type() <= VSimpleCurve::Type &&
list.at(i)->type() > QGraphicsItem::UserType)
{
emit itemClicked(list.at(i));