diff layer/Colour3DPlotLayer.cpp @ 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 7242fe160c19
children 25ec2390fad3
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()