From cf47756e17fe0a0ecffbe167cd66272668e2f3f2 Mon Sep 17 00:00:00 2001 From: Miikka Heikkinen Date: Fri, 21 Nov 2014 13:26:00 +0200 Subject: Minor tweaks to texturesurface example. Change the color of untextured surface so it isn't included in the gradient. Also make it clear the gradient is for highlight only. Change-Id: I822c59b905559da10a987e4a7d616d01dccdedba Reviewed-by: Mika Salmela --- examples/datavisualization/texturesurface/main.cpp | 2 +- examples/datavisualization/texturesurface/topographicseries.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/datavisualization/texturesurface/main.cpp b/examples/datavisualization/texturesurface/main.cpp index eda6a54a..5d61b5d7 100644 --- a/examples/datavisualization/texturesurface/main.cpp +++ b/examples/datavisualization/texturesurface/main.cpp @@ -80,7 +80,7 @@ int main(int argc, char **argv) QLabel *label = new QLabel(widget); label->setPixmap(pm); - QGroupBox *heightMapGroupBox = new QGroupBox(QStringLiteral("Height color map")); + QGroupBox *heightMapGroupBox = new QGroupBox(QStringLiteral("Highlight color map")); QVBoxLayout *colorMapVBox = new QVBoxLayout; colorMapVBox->addWidget(label); heightMapGroupBox->setLayout(colorMapVBox); diff --git a/examples/datavisualization/texturesurface/topographicseries.cpp b/examples/datavisualization/texturesurface/topographicseries.cpp index 2935244d..faeafbe9 100644 --- a/examples/datavisualization/texturesurface/topographicseries.cpp +++ b/examples/datavisualization/texturesurface/topographicseries.cpp @@ -29,6 +29,7 @@ TopographicSeries::TopographicSeries() { setDrawMode(QSurface3DSeries::DrawSurface); setFlatShadingEnabled(true); + setBaseColor(Qt::white); } TopographicSeries::~TopographicSeries() -- cgit v1.2.3