summaryrefslogtreecommitdiffstats
path: root/examples/surface/surfacegraph.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/surface/surfacegraph.cpp')
-rw-r--r--examples/surface/surfacegraph.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/surface/surfacegraph.cpp b/examples/surface/surfacegraph.cpp
index 4c182a79..7cf4f329 100644
--- a/examples/surface/surfacegraph.cpp
+++ b/examples/surface/surfacegraph.cpp
@@ -91,7 +91,7 @@ void SurfaceGraph::enableSqrtSinModel(bool enable)
{
if (enable) {
//! [3]
- m_sqrtSinSeries->setSurfaceGridEnabled(true);
+ m_sqrtSinSeries->setDrawMode(QSurface3DSeries::DrawSurfaceAndWireframe);
m_sqrtSinSeries->setFlatShadingEnabled(true);
m_graph->axisX()->setLabelFormat("%.2f");
@@ -124,7 +124,7 @@ void SurfaceGraph::enableHeightMapModel(bool enable)
{
if (enable) {
//! [4]
- m_heightMapSeries->setSurfaceGridEnabled(false);
+ m_heightMapSeries->setDrawMode(QSurface3DSeries::DrawSurface);
m_heightMapSeries->setFlatShadingEnabled(false);
m_graph->axisX()->setLabelFormat("%.1f N");