diff layer/TimeValueLayer.h @ 61:0387f53242b2

fix the 2ed color bug in the layer list. Now color in layer list is ok.
author benoitrigolleau
date Tue, 29 May 2007 09:26:15 +0000
parents d8e6709e9075
children
line wrap: on
line diff
--- a/layer/TimeValueLayer.h	Tue May 29 08:42:49 2007 +0000
+++ b/layer/TimeValueLayer.h	Tue May 29 09:26:15 2007 +0000
@@ -74,8 +74,8 @@
 					  int value) const;
     virtual void setProperty(const PropertyName &, int value);
 
-    void setBaseColour(QColor);
-    QColor getBaseColour() const { return m_colour; }
+     virtual void setBaseColour(QColor);
+	 virtual QColor getBaseColour() const {return m_colour; }
 
     void setFillColourMap(int);
     int getFillColourMap() const { return m_colourMap; }
@@ -130,7 +130,7 @@
     int getYForValue(View *, float value) const;
     float getValueForY(View *, int y) const;
     QColor getColourForValue(View *v, float value) const;
-
+	QColor m_colour;
     SparseTimeValueModel::PointList getLocalPoints(View *v, int) const;
 
     SparseTimeValueModel *m_model;
@@ -138,7 +138,6 @@
     SparseTimeValueModel::Point m_originalPoint;
     SparseTimeValueModel::Point m_editingPoint;
     SparseTimeValueModel::EditCommand *m_editingCommand;
-    QColor m_colour;
     int m_colourMap;
     PlotStyle m_plotStyle;
     VerticalScale m_verticalScale;