# HG changeset patch # User Chris Cannam # Date 1453368537 0 # Node ID 072f0db59081e069e5d9bb65692d94989201b6cf # Parent 9c890b7dfa836bf6999df4601ae8974a6888284b Make colour 3d plot layer colour a preference as well diff -r 9c890b7dfa83 -r 072f0db59081 layer/Colour3DPlotLayer.cpp --- 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 #include #include +#include #include @@ -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()