GUI: Use 256 colors for the qualitative maps by default.
authorMartin Lambers <marlam@marlam.de>
Tue, 20 Aug 2019 06:43:48 +0000 (08:43 +0200)
committerMartin Lambers <marlam@marlam.de>
Tue, 20 Aug 2019 06:43:48 +0000 (08:43 +0200)
colormapwidgets.cpp

index 121fb30..ae1a6b0 100644 (file)
@@ -512,7 +512,7 @@ ColorMapBrewerQualitativeWidget::~ColorMapBrewerQualitativeWidget()
 void ColorMapBrewerQualitativeWidget::reset()
 {
     _update_lock = true;
-    _n_spinbox->setValue(9);
+    _n_spinbox->setValue(256);
     _hue_changer->setValue(qRadiansToDegrees(ColorMap::BrewerQualitativeDefaultHue));
     _divergence_changer->setValue(qRadiansToDegrees(ColorMap::BrewerQualitativeDefaultDivergence));
     _contrast_changer->setValue(ColorMap::BrewerQualitativeDefaultContrast);
@@ -1164,7 +1164,7 @@ ColorMapPLQualitativeHueWidget::~ColorMapPLQualitativeHueWidget()
 void ColorMapPLQualitativeHueWidget::reset()
 {
     _update_lock = true;
-    _n_spinbox->setValue(9);
+    _n_spinbox->setValue(256);
     _hue_changer->setValue(qRadiansToDegrees(ColorMap::PLQualitativeHueDefaultHue));
     _divergence_changer->setValue(qRadiansToDegrees(ColorMap::PLQualitativeHueDefaultDivergence));
     _lightness_changer->setValue(ColorMap::PLQualitativeHueDefaultLightness);