Mercurial > hg > svgui
changeset 1018:072f0db59081 colourschemes
Make colour 3d plot layer colour a preference as well
author | Chris Cannam |
---|---|
date | Thu, 21 Jan 2016 09:28:57 +0000 |
parents | 9c890b7dfa83 |
children | 25ec2390fad3 |
files | layer/Colour3DPlotLayer.cpp |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/layer/Colour3DPlotLayer.cpp Wed Jan 20 11:43:16 2016 +0000 +++ b/layer/Colour3DPlotLayer.cpp Thu Jan 21 09:28:57 2016 +0000 @@ -25,6 +25,7 @@ #include <QImage> #include <QRect> #include <QTextStream> +#include <QSettings> #include <iostream> @@ -60,7 +61,10 @@ m_miny(0), m_maxy(0) { - + QSettings settings; + settings.beginGroup("Preferences"); + setColourMap(settings.value("colour-3d-plot-colour", ColourMapper::Green).toInt()); + settings.endGroup(); } Colour3DPlotLayer::~Colour3DPlotLayer()