From fdae1424df750bd02913b9ceec1716b1187b2ae7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomi=20Korpip=C3=A4=C3=A4?= Date: Wed, 21 May 2014 10:10:36 +0300 Subject: Added enablers for axis dragging to QML Task-number: QTRD-3003 Will add an example in a separate commit Change-Id: I7fa9eb1b504d188c77b66ef8d4b2ee44416667e2 Reviewed-by: Miikka Heikkinen --- examples/datavisualization/customitems/customitemgraph.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'examples/datavisualization/customitems') diff --git a/examples/datavisualization/customitems/customitemgraph.cpp b/examples/datavisualization/customitems/customitemgraph.cpp index be51f1f0..ca6a46ef 100644 --- a/examples/datavisualization/customitems/customitemgraph.cpp +++ b/examples/datavisualization/customitems/customitemgraph.cpp @@ -90,7 +90,7 @@ CustomItemGraph::CustomItemGraph(Q3DSurface *surface, QLabel *label) m_graph->scene()->activeCamera()->setCameraPreset(Q3DCamera::CameraPresetFront); - connect(m_graph, &QAbstract3DGraph::elementSelected, + connect(m_graph, &QAbstract3DGraph::selectedElementChanged, this, &CustomItemGraph::handleElementSelected); m_selectionAnimation = new QPropertyAnimation(this); @@ -237,7 +237,6 @@ void CustomItemGraph::handleElementSelected(QAbstract3DGraph::ElementType type) m_selectionAnimation->setStartValue(item->scaling()); m_selectionAnimation->setEndValue(item->scaling() * 1.5f); m_selectionAnimation->start(); - item->setShadowCasting(false); } else if (type == QAbstract3DGraph::ElementSeries) { QString text = "Surface ("; QSurface3DSeries *series = m_graph->selectedSeries(); -- cgit v1.2.3