diff options
author | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2014-01-28 14:55:31 +0200 |
---|---|---|
committer | Tomi Korpipää <tomi.korpipaa@digia.com> | 2014-01-29 06:14:24 +0200 |
commit | 01e42c90075fcfc5a9275d5161df476797625375 (patch) | |
tree | f15581a7369a865074fb497ee40c0b27badc4e76 /examples/surface | |
parent | 33e9f279770d79a9c0b57201b3e45e4061e39aaa (diff) |
Minor tweaks to examples
Change-Id: Ic7ab56bc4829fafb0b1c3352bd3cdd4c3530291d
Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
Diffstat (limited to 'examples/surface')
-rw-r--r-- | examples/surface/doc/src/surface.qdoc | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/examples/surface/doc/src/surface.qdoc b/examples/surface/doc/src/surface.qdoc index 4b0ec63d..bf53192f 100644 --- a/examples/surface/doc/src/surface.qdoc +++ b/examples/surface/doc/src/surface.qdoc @@ -66,9 +66,9 @@ \snippet ../examples/surface/surfacegraph.cpp 0 - Then we fill the proxy with a simple square root and sin wave data. This is done by + Then we fill the proxy with a simple square root and sine wave data. This is done by creating a new \c QSurfaceDataArray instance and adding \c QSurfaceDataRow elements to it. - The created \c QSurfaceDataArray is set to be a the data array for the QSurfaceDataProxy. + The created \c QSurfaceDataArray is set to be the data array for the QSurfaceDataProxy. \snippet ../examples/surface/surfacegraph.cpp 1 @@ -85,10 +85,7 @@ \c {Sqrt & Sin} radio button, the selected series is activated with the following code. First we set the decorative issues like enable the grid for the surface and select the flat shading mode. Next lines define the axis label format and value - ranges. The Y-value value of the function we use to generate the points varies between - 0.0 and 2.0, but no individual point actually hits exactly those, so we set the Y-axis range - explicitly. The other axes we are happy to leave to automatically adjust their range to the - data, which is the default behavior. Finally we make sure the correct series is added to the + ranges. Finally we make sure the correct series is added to the graph. We need to first remove the other series, since surface graphs only support a single series at a time: |