From acd398f38f228960367bcccd3f2c99aca753248f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomi=20Korpip=C3=A4=C3=A4?= Date: Wed, 25 Sep 2013 06:31:14 +0300 Subject: Added missing qmlmethod docs Task-number: QTRD-2133 Change-Id: I8549448eda6fcbf667810cee7f14e75e0b6384ef Change-Id: I8549448eda6fcbf667810cee7f14e75e0b6384ef Reviewed-by: Miikka Heikkinen --- src/datavisualization/engine/q3dbars.cpp | 21 +++++++++++++++++++++ src/datavisualization/engine/q3dscatter.cpp | 20 ++++++++++++++++++++ 2 files changed, 41 insertions(+) diff --git a/src/datavisualization/engine/q3dbars.cpp b/src/datavisualization/engine/q3dbars.cpp index 701c82b9..fb46a14c 100644 --- a/src/datavisualization/engine/q3dbars.cpp +++ b/src/datavisualization/engine/q3dbars.cpp @@ -108,6 +108,27 @@ QT_DATAVISUALIZATION_BEGIN_NAMESPACE * \sa ItemModelBarDataProxy, Scatter3D, Surface3D, {Qt Data Visualization C++ Classes} */ +/*! + * \qmlmethod void Bars3D::setCameraPosition(qreal horizontal, qreal vertical, int distance) + * Move camera to a wanted position based on \a horizontal and \a vertical angles. Angles are limited + * to -180...180 in horizontal direction and either -90...90 or 0...90 in vertical, depending + * on data values. Negative vertical angles are allowed only if there are negative bar values. + * \a distance is adjustable between 10 and 500, being \c 100 by default. + */ + +/*! + * \qmlmethod void Bars3D::setBarColor(const QColor &baseColor, bool uniform) + * Set bar color using your own color. \a baseColor sets the base color of a bar. The \a uniform + * -flag is used to define if color needs to be uniform throughout bar's length, or will the colors + * be applied by height, starting with dark at the bottom. It is \c true by default. + * + * Calling this method overrides colors from theme. + * + * \sa theme + * + * \warning This method is subject to change. + */ + /*! * \qmlproperty BarDataProxy Bars3D::dataProxy * The active data proxy. diff --git a/src/datavisualization/engine/q3dscatter.cpp b/src/datavisualization/engine/q3dscatter.cpp index 0940fc71..cb06c99f 100644 --- a/src/datavisualization/engine/q3dscatter.cpp +++ b/src/datavisualization/engine/q3dscatter.cpp @@ -99,6 +99,26 @@ QT_DATAVISUALIZATION_BEGIN_NAMESPACE * \sa ItemModelScatterDataProxy, Bars3D, Surface3D, {Qt Data Visualization C++ Classes} */ +/*! + * \qmlmethod void Scatter3D::setCameraPosition(qreal horizontal, qreal vertical, int distance) + * Move camera to a wanted position based on \a horizontal and \a vertical angles. Angles are limited + * to -180...180 in horizontal direction and -90...90 in vertical. \a distance is adjustable + * between 10 and 500, being \c 100 by default. + */ + +/*! + * \qmlmethod void Scatter3D::setObjectColor(const QColor &baseColor, bool uniform) + * Set item color using your own colors. \a baseColor sets the base color of a item. The \a uniform + * -flag is used to define if color needs to be uniform throughout item's length, or will the colors + * be applied by height. It is \c true by default. + * + * Calling this method overrides colors from theme. + * + * \sa theme + * + * \warning This method is subject to change. + */ + /*! * \qmlproperty ScatterDataProxy Scatter3D::dataProxy * The active data proxy. -- cgit v1.2.3