From 7aca6d8179e780395d74cf88a4087e27a37d21b7 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Fri, 20 May 2016 14:42:48 +0300 Subject: [PATCH] Added VSimpleCurve to list of valid objects to call a visualization. --HG-- branch : develop --- src/libs/vwidgets/vmaingraphicsview.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/vwidgets/vmaingraphicsview.cpp b/src/libs/vwidgets/vmaingraphicsview.cpp index be0898116..c33877fe4 100644 --- a/src/libs/vwidgets/vmaingraphicsview.cpp +++ b/src/libs/vwidgets/vmaingraphicsview.cpp @@ -32,7 +32,7 @@ #include #include #include -#include "vsimplepoint.h" +#include "vsimplecurve.h" #include "vmaingraphicsscene.h" #include @@ -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));