summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--examples/datavisualization/bars/doc/src/bars.qdoc6
-rw-r--r--examples/datavisualization/customitems/doc/src/customitems.qdoc3
-rw-r--r--examples/datavisualization/customitems/main.cpp2
-rw-r--r--examples/datavisualization/itemmodel/main.cpp1
-rw-r--r--examples/datavisualization/qmloscilloscope/doc/src/qmloscilloscope.qdoc2
-rw-r--r--src/datavisualization/data/qbar3dseries.cpp4
-rw-r--r--src/datavisualization/data/qcustom3ditem.cpp2
-rw-r--r--src/datavisualization/data/qitemmodelbardataproxy.cpp7
-rw-r--r--src/datavisualization/data/qitemmodelscatterdataproxy.cpp6
-rw-r--r--src/datavisualization/data/qitemmodelsurfacedataproxy.cpp13
-rw-r--r--src/datavisualization/doc/src/qtdatavisualization-qml-abstractdeclarative.qdoc9
-rw-r--r--src/datavisualization/engine/q3dcamera.cpp6
-rw-r--r--src/datavisualization/engine/qabstract3dgraph.cpp12
-rw-r--r--src/datavisualization/theme/q3dtheme.cpp30
14 files changed, 60 insertions, 43 deletions
diff --git a/examples/datavisualization/bars/doc/src/bars.qdoc b/examples/datavisualization/bars/doc/src/bars.qdoc
index 1fa3f934..9717fe8a 100644
--- a/examples/datavisualization/bars/doc/src/bars.qdoc
+++ b/examples/datavisualization/bars/doc/src/bars.qdoc
@@ -89,6 +89,9 @@
\snippet bars/graphmodifier.cpp 3
+ We give axis labels a small autorotation angle to make them orient somewhat toward the
+ camera. This is done to improve axis label readability at extreme camera angles.
+
Next we initialize the visual properties of the series.
Note that the second series is initially not visible:
@@ -159,6 +162,8 @@
\li Grid visibility
\li Bar shading smoothness
\li Visibility of the second bar series
+ \li Value axis direction
+ \li Axis title visibility and rotation
\li Data range to be shown
\li Bar style
\li Selection mode
@@ -166,6 +171,7 @@
\li Shadow quality
\li Font
\li Font size
+ \li Axis label rotation
\endlist
\section1 Selecting a row/column by clicking an axis label
diff --git a/examples/datavisualization/customitems/doc/src/customitems.qdoc b/examples/datavisualization/customitems/doc/src/customitems.qdoc
index f2699998..3d385245 100644
--- a/examples/datavisualization/customitems/doc/src/customitems.qdoc
+++ b/examples/datavisualization/customitems/doc/src/customitems.qdoc
@@ -68,5 +68,8 @@
\snippet customitems/customitemgraph.cpp 4
+ \note Removing a custom item from the graph also deletes it. If you want to preserve the item,
+ you need to use \c releaseCustomItem() method instead.
+
\section1 Example Contents
*/
diff --git a/examples/datavisualization/customitems/main.cpp b/examples/datavisualization/customitems/main.cpp
index 7f5dd01e..a14e7610 100644
--- a/examples/datavisualization/customitems/main.cpp
+++ b/examples/datavisualization/customitems/main.cpp
@@ -90,7 +90,7 @@ int main(int argc, char **argv)
QLabel *label4 = new QLabel("Nothing");
font.setBold(false);
- font.setPointSize(12);
+ font.setPointSize(11);
label4->setFont(font);
vLayoutRight->addWidget(label4);
diff --git a/examples/datavisualization/itemmodel/main.cpp b/examples/datavisualization/itemmodel/main.cpp
index f00702eb..eab4ca1b 100644
--- a/examples/datavisualization/itemmodel/main.cpp
+++ b/examples/datavisualization/itemmodel/main.cpp
@@ -183,6 +183,7 @@ void GraphDataGenerator::setupModel()
m_tableWidget->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
m_tableWidget->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
m_tableWidget->setCurrentCell(-1, -1);
+ m_tableWidget->setSelectionMode(QAbstractItemView::SingleSelection);
//! [11]
//! [12]
diff --git a/examples/datavisualization/qmloscilloscope/doc/src/qmloscilloscope.qdoc b/examples/datavisualization/qmloscilloscope/doc/src/qmloscilloscope.qdoc
index e13320c3..6cc652ec 100644
--- a/examples/datavisualization/qmloscilloscope/doc/src/qmloscilloscope.qdoc
+++ b/examples/datavisualization/qmloscilloscope/doc/src/qmloscilloscope.qdoc
@@ -81,7 +81,7 @@
One interesting detail is that we don't specify a proxy for the Surface3DSeries we attach
to the graph. This makes the series to utilize the default QSurfaceDataProxy.
- We also hide the item label with \l{Abstract3DSeries::itemLabelVisible}{itemLabelFormat}, since
+ We also hide the item label with \l{Abstract3DSeries::itemLabelVisible}{itemLabelVisible}, since
we want to display the selected item information in a \c Text element instead of a floating
label above the selection pointer.
This is done because the selection pointer moves around a lot as the data changes, which makes
diff --git a/src/datavisualization/data/qbar3dseries.cpp b/src/datavisualization/data/qbar3dseries.cpp
index 3440a3db..19c3bf79 100644
--- a/src/datavisualization/data/qbar3dseries.cpp
+++ b/src/datavisualization/data/qbar3dseries.cpp
@@ -119,7 +119,7 @@ QT_BEGIN_NAMESPACE_DATAVISUALIZATION
*
* A convenience property for defining the series rotation \a angle in degrees.
*
- * \note: When reading this property, it is calculated from Abstract3DSeries::meshRotation value
+ * \note When reading this property, it is calculated from Abstract3DSeries::meshRotation value
* using floating point precision and always returns a value from zero to 360 degrees.
*
* \sa Abstract3DSeries::meshRotation
@@ -222,7 +222,7 @@ static inline float quaternionAngle(const QQuaternion &rotation)
* Setting this property is equivalent to the following call:
* \code setMeshRotation(QQuaternion::fromAxisAndAngle(0.0f, 1.0f, 0.0f, angle)) \endcode
*
- * \note: When reading this property, it is calculated from QAbstract3DSeries::meshRotation value
+ * \note When reading this property, it is calculated from QAbstract3DSeries::meshRotation value
* using floating point precision and always returns a value from zero to 360 degrees.
*
* \sa QAbstract3DSeries::meshRotation
diff --git a/src/datavisualization/data/qcustom3ditem.cpp b/src/datavisualization/data/qcustom3ditem.cpp
index f5d8470f..efee3b15 100644
--- a/src/datavisualization/data/qcustom3ditem.cpp
+++ b/src/datavisualization/data/qcustom3ditem.cpp
@@ -55,7 +55,7 @@ QT_BEGIN_NAMESPACE_DATAVISUALIZATION
* Holds the texture file name for the item. If left unset, a solid gray texture will be
* used.
*
- * \note To conserve memory the Image loaded from the file is cleared after a texture is created.
+ * \note To conserve memory the QImage loaded from the file is cleared after a texture is created.
*/
/*! \qmlproperty vector3d Custom3DItem::position
diff --git a/src/datavisualization/data/qitemmodelbardataproxy.cpp b/src/datavisualization/data/qitemmodelbardataproxy.cpp
index 3d4a980a..10ebcea8 100644
--- a/src/datavisualization/data/qitemmodelbardataproxy.cpp
+++ b/src/datavisualization/data/qitemmodelbardataproxy.cpp
@@ -241,13 +241,14 @@ QT_BEGIN_NAMESPACE_DATAVISUALIZATION
/*!
* \qmlproperty ItemModelBarDataProxy.MultiMatchBehavior ItemModelBarDataProxy::multiMatchBehavior
* This property defines how multiple matches for each row/column combination are handled.
- * Defaults to ItemModelBarDataProxy.MMBLast. The chosen behavior affects both bar value
- * and rotation.
+ * Defaults to \l{QItemModelBarDataProxy::MMBLast}{ItemModelBarDataProxy.MMBLast}. The chosen
+ * behavior affects both bar value and rotation.
*
* For example, you might have an item model with timestamped data taken at irregular intervals
* and you want to visualize total value of data items on each day with a bar graph.
* This can be done by specifying row and column categories so that each bar represents a day,
- * and setting multiMatchBehavior to ItemModelBarDataProxy.MMBCumulative.
+ * and setting multiMatchBehavior to
+ * \l{QItemModelBarDataProxy::MMBCumulative}{ItemModelBarDataProxy.MMBCumulative}.
*/
/*!
diff --git a/src/datavisualization/data/qitemmodelscatterdataproxy.cpp b/src/datavisualization/data/qitemmodelscatterdataproxy.cpp
index 4e6464ea..4fd3e574 100644
--- a/src/datavisualization/data/qitemmodelscatterdataproxy.cpp
+++ b/src/datavisualization/data/qitemmodelscatterdataproxy.cpp
@@ -106,9 +106,9 @@ QT_BEGIN_NAMESPACE_DATAVISUALIZATION
*
* Defines the item model role to map into item rotation.
* The model may supply the value for rotation as either variant that is directly convertible
- * to QQuaternion, or as one of the string representations: \c{"scalar,x,y,z"} or
- * \c{"@angle,x,y,z"}. The first format will construct the quaternion directly with given values,
- * and the second one will construct the quaternion using QQuaternion::fromAxisAndAngle() method.
+ * to \l quaternion, or as one of the string representations: \c{"scalar,x,y,z"} or
+ * \c{"@angle,x,y,z"}. The first format will construct the \l quaternion directly with given values,
+ * and the second one will construct the \l quaternion using QQuaternion::fromAxisAndAngle() method.
*/
/*!
diff --git a/src/datavisualization/data/qitemmodelsurfacedataproxy.cpp b/src/datavisualization/data/qitemmodelsurfacedataproxy.cpp
index 5117d386..d5216560 100644
--- a/src/datavisualization/data/qitemmodelsurfacedataproxy.cpp
+++ b/src/datavisualization/data/qitemmodelsurfacedataproxy.cpp
@@ -128,7 +128,7 @@ QT_BEGIN_NAMESPACE_DATAVISUALIZATION
/*!
* \qmlproperty string ItemModelSurfaceDataProxy::xPosRole
* Defines the item model role to map into X position. If this role is not defined, columnRole is
- * used to determine the X-coordinate value of resolved QSurfaceDataItems.
+ * used to determine the X-coordinate value of resolved \l{QSurfaceDataItem}s.
*/
/*!
@@ -139,7 +139,7 @@ QT_BEGIN_NAMESPACE_DATAVISUALIZATION
/*!
* \qmlproperty string ItemModelSurfaceDataProxy::zPosRole
* Defines the item model role to map into Z position. If this role is not defined, rowRole is
- * used to determine the Z-coordinate value of resolved QSurfaceDataItems.
+ * used to determine the Z-coordinate value of resolved \l{QSurfaceDataItem}s.
*/
/*!
@@ -285,12 +285,13 @@ QT_BEGIN_NAMESPACE_DATAVISUALIZATION
/*!
* \qmlproperty ItemModelSurfaceDataProxy.MultiMatchBehavior ItemModelSurfaceDataProxy::multiMatchBehavior
* This property defines how multiple matches for each row/column combination are handled.
- * Defaults to ItemModelSurfaceDataProxy.MMBLast.
+ * Defaults to \l{QItemModelSurfaceDataProxy::MMBLast}{ItemModelSurfaceDataProxy.MMBLast}.
*
* For example, you might have an item model with timestamped data taken at irregular intervals
* and you want to visualize an average position of data items on each hour with a surface graph.
* This can be done by specifying row and column categories so that each surface point represents
- * an hour, and setting multiMatchBehavior to ItemModelSurfaceDataProxy.MMBAverage.
+ * an hour, and setting multiMatchBehavior to
+ * \l{QItemModelSurfaceDataProxy::MMBAverage}{ItemModelSurfaceDataProxy.MMBAverage}.
*/
/*!
@@ -528,7 +529,7 @@ QString QItemModelSurfaceDataProxy::columnRole() const
* \property QItemModelSurfaceDataProxy::xPosRole
*
* Defines the item model role to map into X position. If this role is not defined, columnRole is
- * used to determine the X-coordinate value of resolved QSurfaceDataItems.
+ * used to determine the X-coordinate value of resolved \l{QSurfaceDataItem}s.
*/
void QItemModelSurfaceDataProxy::setXPosRole(const QString &role)
{
@@ -565,7 +566,7 @@ QString QItemModelSurfaceDataProxy::yPosRole() const
* \property QItemModelSurfaceDataProxy::zPosRole
*
* Defines the item model role to map into Z position. If this role is not defined, rowRole is
- * used to determine the Z-coordinate value of resolved QSurfaceDataItems.
+ * used to determine the Z-coordinate value of resolved \l{QSurfaceDataItem}s.
*/
void QItemModelSurfaceDataProxy::setZPosRole(const QString &role)
{
diff --git a/src/datavisualization/doc/src/qtdatavisualization-qml-abstractdeclarative.qdoc b/src/datavisualization/doc/src/qtdatavisualization-qml-abstractdeclarative.qdoc
index ba3173b0..2cc3eece 100644
--- a/src/datavisualization/doc/src/qtdatavisualization-qml-abstractdeclarative.qdoc
+++ b/src/datavisualization/doc/src/qtdatavisualization-qml-abstractdeclarative.qdoc
@@ -53,7 +53,7 @@
/*!
\qmlproperty Scene3D AbstractGraph3D::scene
- Read only Q3DScene that can be used to access e.g. camera object.
+ Read only property that can be used to access for example Camera3D via the Scene3D held here.
*/
/*!
@@ -146,6 +146,13 @@
*/
/*!
+ * \qmlproperty list<Custom3DItem> AbstractGraph3D::customItemList
+ * \since QtDataVisualization 1.1
+ *
+ * Add a list of \l{Custom3DItem}s to the graph. Graph takes ownership of the added items.
+ */
+
+/*!
* \qmlmethod void AbstractGraph3D::clearSelection()
* Clears selection from all attached series.
*/
diff --git a/src/datavisualization/engine/q3dcamera.cpp b/src/datavisualization/engine/q3dcamera.cpp
index 9866a34e..06fd570c 100644
--- a/src/datavisualization/engine/q3dcamera.cpp
+++ b/src/datavisualization/engine/q3dcamera.cpp
@@ -89,14 +89,14 @@ QT_BEGIN_NAMESPACE_DATAVISUALIZATION
* \qmlproperty float Camera3D::xRotation
*
* This property contains the X-rotation angle of the camera around the target point in degrees
- * starting from the current base position set by the setBaseOrientation method.
+ * starting from the current base position.
*/
/*!
* \qmlproperty float Camera3D::yRotation
*
* This property contains the Y-rotation angle of the camera around the target point in degrees
- * starting from the current base position set by the setBaseOrientation method.
+ * starting from the current base position.
*/
/*!
@@ -105,8 +105,6 @@ QT_BEGIN_NAMESPACE_DATAVISUALIZATION
* This property contains the currently active camera preset, which is one of
* \l{Q3DCamera::CameraPreset}{Camera3D.CameraPreset}. If no preset is active the value
* is \l{Q3DCamera::CameraPresetNone}{Camera3D.CameraPresetNone}.
- * \note The base camera orientation set by setBaseOrientation will affect the presets as all
- * calculations are based on those values.
*/
/*!
diff --git a/src/datavisualization/engine/qabstract3dgraph.cpp b/src/datavisualization/engine/qabstract3dgraph.cpp
index dabec744..b8fa92e8 100644
--- a/src/datavisualization/engine/qabstract3dgraph.cpp
+++ b/src/datavisualization/engine/qabstract3dgraph.cpp
@@ -349,12 +349,12 @@ QAbstract3DGraph::SelectionFlags QAbstract3DGraph::selectionMode() const
/*!
* \property QAbstract3DGraph::shadowQuality
*
- * Sets shadow \a quality to one of ShadowQuality. It is preset to
+ * Sets the shadow \a quality to one of the ShadowQuality enum values. It is preset to
* \c ShadowQualityMedium by default.
*
- * \note If setting ShadowQuality of a certain level fails, a level is lowered
- * until it is successful and \c shadowQualityChanged signal is emitted for each time the change is
- * done.
+ * \note If setting the shadow quality to a certain level fails, the level is lowered
+ * until it is successfully set. The \c shadowQualityChanged signal is emitted for each time
+ * a change is done.
*/
void QAbstract3DGraph::setShadowQuality(ShadowQuality quality)
{
@@ -378,8 +378,8 @@ bool QAbstract3DGraph::shadowsSupported() const
/*!
* \property QAbstract3DGraph::scene
*
- * This property contains the read only Q3DScene that can be used to access, for example, a camera
- * object.
+ * This property is read-only and contains the Q3DScene pointer that can be used to manipulate
+ * the scene and access the scene elements, such as the active camera.
*/
Q3DScene *QAbstract3DGraph::scene() const
{
diff --git a/src/datavisualization/theme/q3dtheme.cpp b/src/datavisualization/theme/q3dtheme.cpp
index eaed3c41..97ff8f81 100644
--- a/src/datavisualization/theme/q3dtheme.cpp
+++ b/src/datavisualization/theme/q3dtheme.cpp
@@ -240,7 +240,7 @@ QT_BEGIN_NAMESPACE_DATAVISUALIZATION
*/
/*!
- * \qmlproperty Color Theme3D::baseColors
+ * \qmlproperty list<ThemeColor> Theme3D::baseColors
*
* List of base colors to be used for all the objects in the graph, series by series. If there
* are more series than colors, color list wraps and starts again with the first color in the list.
@@ -248,57 +248,57 @@ QT_BEGIN_NAMESPACE_DATAVISUALIZATION
*/
/*!
- * \qmlproperty Color Theme3D::backgroundColor
+ * \qmlproperty color Theme3D::backgroundColor
*
* Color for the graph background.
*/
/*!
- * \qmlproperty Color Theme3D::windowColor
+ * \qmlproperty color Theme3D::windowColor
*
* Color for the application window.
*/
/*!
- * \qmlproperty Color Theme3D::labelTextColor
+ * \qmlproperty color Theme3D::labelTextColor
*
* Color for the font used for labels.
*/
/*!
- * \qmlproperty Color Theme3D::labelBackgroundColor
+ * \qmlproperty color Theme3D::labelBackgroundColor
*
* Color for the label backgrounds. Has no effect if labelBackgroundEnabled is \c false.
*/
/*!
- * \qmlproperty Color Theme3D::gridLineColor
+ * \qmlproperty color Theme3D::gridLineColor
*
* Color for the grid lines.
*/
/*!
- * \qmlproperty Color Theme3D::singleHighlightColor
+ * \qmlproperty color Theme3D::singleHighlightColor
*
* Highlight color for a highlighted object. Used if \l{AbstractGraph3D::selectionMode}{selectionMode}
* has \c AbstractGraph3D.SelectionItem flag set.
*/
/*!
- * \qmlproperty Color Theme3D::multiHighlightColor
+ * \qmlproperty color Theme3D::multiHighlightColor
*
* Highlight color for highlighted objects. Used if \l{AbstractGraph3D::selectionMode}{selectionMode}
* has \c AbstractGraph3D.SelectionRow or \c AbstractGraph3D.SelectionColumn flag set.
*/
/*!
- * \qmlproperty Color Theme3D::lightColor
+ * \qmlproperty color Theme3D::lightColor
*
* Color for the specular light defined in Scene3D.
*/
/*!
- * \qmlproperty ColorGradient Theme3D::baseGradients
+ * \qmlproperty list<ColorGradient> Theme3D::baseGradients
*
* List of base gradients to be used for all the objects in the graph, series by series. If there
* are more series than gradients, gradient list wraps and starts again with the first gradient in
@@ -321,19 +321,19 @@ QT_BEGIN_NAMESPACE_DATAVISUALIZATION
*/
/*!
- * \qmlproperty float Theme3D::lightStrength
+ * \qmlproperty real Theme3D::lightStrength
*
* Specular light strength for the whole graph. Value must be between 0.0 and 1.0.
*/
/*!
- * \qmlproperty float Theme3D::ambientLightStrength
+ * \qmlproperty real Theme3D::ambientLightStrength
*
* Ambient light strength for the whole graph. Value must be between 0.0 and 1.0.
*/
/*!
- * \qmlproperty float Theme3D::highlightLightStrength
+ * \qmlproperty real Theme3D::highlightLightStrength
*
* Specular light strength for highlighted objects. Value must be between 0.0 and 1.0.
*/
@@ -345,9 +345,9 @@ QT_BEGIN_NAMESPACE_DATAVISUALIZATION
*/
/*!
- * \qmlproperty Font Theme3D::font
+ * \qmlproperty font Theme3D::font
*
- * Set \a font to be used for labels.
+ * Set font to be used for labels.
*/
/*!