diff options
author | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2013-09-17 08:30:34 +0300 |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2013-09-18 08:33:52 +0300 |
commit | 4daf244e9745a28b917b0976e39a60d73776c4aa (patch) | |
tree | 0b10abd2cea115f5f05b44e753e75cbde9badfd0 /src/datavisualization/engine/q3dbars.cpp | |
parent | 43435c1b51e81c3ecdfec771950d861df90ebef3 (diff) |
Bar graph data window controlled by category axes ranges
Task-number: QTRD-2183
Task-number: QTRD-2254
Change-Id: I09808c3980a4fa60b7584839e834ee3a734b3e9a
Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
Diffstat (limited to 'src/datavisualization/engine/q3dbars.cpp')
-rw-r--r-- | src/datavisualization/engine/q3dbars.cpp | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/src/datavisualization/engine/q3dbars.cpp b/src/datavisualization/engine/q3dbars.cpp index be8b3a88..e892367e 100644 --- a/src/datavisualization/engine/q3dbars.cpp +++ b/src/datavisualization/engine/q3dbars.cpp @@ -231,7 +231,7 @@ QT_DATAVISUALIZATION_BEGIN_NAMESPACE /*! * \qmlproperty point Bars3D::selectedBarPos - * Position of the selected bar, if any. Only one bar can be selected at a time. + * Position of the selected bar in data window. Only one bar can be selected at a time. * To clear selection, specify an illegal position, e.g. Qt.point(-1.0, -1.0). */ @@ -405,23 +405,6 @@ void Q3DBars::setBarType(QDataVis::MeshStyle style, bool smooth) } /*! - * Set up data window to \a samplesRow rows and \a samplesColumn columns. Both are preset to \c 10 - * by default. - */ -void Q3DBars::setDataWindow(int samplesRow, int samplesColumn) -{ - d_ptr->m_shared->setDataWindow(samplesRow, samplesColumn); -} - -/*! - * \return size of the sample space in QSize. - */ -QSize Q3DBars::dataWindow() const -{ - return QSize(d_ptr->m_shared->rowCount(), d_ptr->m_shared->columnCount()); -} - -/*! * \property Q3DBars::cameraPreset * * The \a preset position of the camera. The position can be one of \c QDataVis::CameraPreset. @@ -584,7 +567,8 @@ bool Q3DBars::isBackgroundVisible() const /*! * \property Q3DBars::selectedBarPos * - * Selects a bar in a \a position. Only one bar can be selected at a time. + * Selects a bar in a \a position. The position is the position in data window. + * Only one bar can be selected at a time. * To clear selection, specify an illegal \a position, e.g. (-1, -1). */ void Q3DBars::setSelectedBarPos(const QPoint &position) |