diff options
author | Tomi Korpipää <tomi.korpipaa@digia.com> | 2014-05-21 10:10:36 +0300 |
---|---|---|
committer | Tomi Korpipää <tomi.korpipaa@digia.com> | 2014-05-21 10:12:29 +0300 |
commit | fdae1424df750bd02913b9ceec1716b1187b2ae7 (patch) | |
tree | 7a7e6448b5b0daa4f42162be6403016341b8103b /examples | |
parent | 1fe989d12f8fe5c13675158044bb76551fb5eb0f (diff) |
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 <miikka.heikkinen@digia.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/datavisualization/customitems/customitemgraph.cpp | 3 | ||||
-rw-r--r-- | examples/datavisualization/draggableaxes/axesinputhandler.cpp | 2 |
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] } |