From 01e42c90075fcfc5a9275d5161df476797625375 Mon Sep 17 00:00:00 2001 From: Miikka Heikkinen Date: Tue, 28 Jan 2014 14:55:31 +0200 Subject: Minor tweaks to examples MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ic7ab56bc4829fafb0b1c3352bd3cdd4c3530291d Reviewed-by: Tomi Korpipää --- examples/surface/doc/src/surface.qdoc | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'examples/surface') 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: -- cgit v1.2.3