summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/datavisualization/customitems/customitemgraph.cpp3
-rw-r--r--examples/datavisualization/draggableaxes/axesinputhandler.cpp2
2 files changed, 2 insertions, 3 deletions
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();
diff --git a/examples/datavisualization/draggableaxes/axesinputhandler.cpp b/examples/datavisualization/draggableaxes/axesinputhandler.cpp
index 70086b1c..ef7b871b 100644
--- a/examples/datavisualization/draggableaxes/axesinputhandler.cpp
+++ b/examples/datavisualization/draggableaxes/axesinputhandler.cpp
@@ -30,7 +30,7 @@ AxesInputHandler::AxesInputHandler(QAbstract3DGraph *graph, QObject *parent) :
{
//! [3]
// Connect to the item selection signal from graph
- connect(graph, &QAbstract3DGraph::elementSelected, this,
+ connect(graph, &QAbstract3DGraph::selectedElementChanged, this,
&AxesInputHandler::handleElementSelected);
//! [3]
}