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/q3dbars.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/q3dbars.cpp')
-rw-r--r-- | src/datavisualization/engine/q3dbars.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/datavisualization/engine/q3dbars.cpp b/src/datavisualization/engine/q3dbars.cpp index 787033ad..7b37715f 100644 --- a/src/datavisualization/engine/q3dbars.cpp +++ b/src/datavisualization/engine/q3dbars.cpp @@ -104,6 +104,8 @@ Q3DBars::Q3DBars(const QSurfaceFormat *format, QWindow *parent) dptr()->m_shared->initializeOpenGL(); QObject::connect(dptr()->m_shared, &Bars3DController::primarySeriesChanged, this, &Q3DBars::primarySeriesChanged); + QObject::connect(dptr()->m_shared, &Bars3DController::selectedSeriesChanged, + this, &Q3DBars::selectedSeriesChanged); } /*! @@ -328,6 +330,17 @@ QValue3DAxis *Q3DBars::valueAxis() const } /*! + * \property Q3DBars::selectedSeries + * + * The selected series or \c null. If selectionMode has \c SelectionMultiSeries flag set, this + * property holds the series which owns the selected bar. + */ +QBar3DSeries *Q3DBars::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. |