diff options
author | Miikka Heikkinen <miikka.heikkinen@theqtcompany.com> | 2014-11-21 13:26:00 +0200 |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@theqtcompany.com> | 2014-11-21 13:51:18 +0200 |
commit | cf47756e17fe0a0ecffbe167cd66272668e2f3f2 (patch) | |
tree | b251992ee5d9782fa9b33adce19ca11e24a163f8 /examples/datavisualization | |
parent | 4830e55e98e7e77586b0abc68f208a0176f14103 (diff) |
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 <mika.salmela@theqtcompany.com>
Diffstat (limited to 'examples/datavisualization')
-rw-r--r-- | examples/datavisualization/texturesurface/main.cpp | 2 | ||||
-rw-r--r-- | examples/datavisualization/texturesurface/topographicseries.cpp | 1 |
2 files changed, 2 insertions, 1 deletions
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() |