diff options
author | Tomi Korpipää <tomi.korpipaa@digia.com> | 2014-02-10 07:41:25 +0200 |
---|---|---|
committer | Tomi Korpipää <tomi.korpipaa@digia.com> | 2014-02-10 08:22:53 +0200 |
commit | ffc2e2039f58de256a98da395b5d0e87d5a176fc (patch) | |
tree | 7d5e995b9e98ad7763430d5877528688adc6b095 /src/datavisualization/engine/q3dsurface.cpp | |
parent | a6961fbdb4e60fa0021fed623d8e8aaf1dd78a72 (diff) |
Added selectedSeries property
Task-number: QTRD-2806
Change-Id: Icd895915f39e475fe9f2a006bebd956615474202
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
Diffstat (limited to 'src/datavisualization/engine/q3dsurface.cpp')
-rw-r--r-- | src/datavisualization/engine/q3dsurface.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/datavisualization/engine/q3dsurface.cpp b/src/datavisualization/engine/q3dsurface.cpp index a8a8235e..5705cc30 100644 --- a/src/datavisualization/engine/q3dsurface.cpp +++ b/src/datavisualization/engine/q3dsurface.cpp @@ -100,6 +100,8 @@ Q3DSurface::Q3DSurface(const QSurfaceFormat *format, QWindow *parent) dptr()->m_shared = new Surface3DController(geometry()); d_ptr->setVisualController(dptr()->m_shared); dptr()->m_shared->initializeOpenGL(); + QObject::connect(dptr()->m_shared, &Surface3DController::selectedSeriesChanged, + this, &Q3DSurface::selectedSeriesChanged); } /*! @@ -223,6 +225,17 @@ QValue3DAxis *Q3DSurface::axisZ() const } /*! + * \property Q3DSurface::selectedSeries + * + * The selected series or \c null. If selectionMode has \c SelectionMultiSeries flag set, this + * property holds the series which owns the selected point. + */ +QSurface3DSeries *Q3DSurface::selectedSeries() const +{ + return dptrc()->m_shared->selectedSeries(); +} + +/*! * Adds \a axis to the graph. The axes added via addAxis are not yet taken to use, * addAxis is simply used to give the ownership of the \a axis to the graph. * The \a axis must not be null or added to another graph. |