diff options
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. |