# HG changeset patch # User Chris Cannam # Date 1235744694 0 # Node ID ff1dc4f302bd8b8b5ad01931e225bc3b70232543 # Parent 4ba0476ebbb6fe3a086562d949ed1de51c46d462 * Add icons for "show segment division lines" in time value layer and "always opaque" in colour 3d plot diff -r 4ba0476ebbb6 -r ff1dc4f302bd layer/TimeValueLayer.cpp --- a/layer/TimeValueLayer.cpp Fri Feb 27 13:33:16 2009 +0000 +++ b/layer/TimeValueLayer.cpp Fri Feb 27 14:24:54 2009 +0000 @@ -103,6 +103,13 @@ return SingleColourLayer::getPropertyLabel(name); } +QString +TimeValueLayer::getPropertyIconName(const PropertyName &name) const +{ + if (name == "Draw Segment Division Lines") return "lines"; + return ""; +} + Layer::PropertyType TimeValueLayer::getPropertyType(const PropertyName &name) const { diff -r 4ba0476ebbb6 -r ff1dc4f302bd layer/TimeValueLayer.h --- a/layer/TimeValueLayer.h Fri Feb 27 13:33:16 2009 +0000 +++ b/layer/TimeValueLayer.h Fri Feb 27 14:24:54 2009 +0000 @@ -70,6 +70,7 @@ virtual PropertyList getProperties() const; virtual QString getPropertyLabel(const PropertyName &) const; + virtual QString getPropertyIconName(const PropertyName &) const; virtual PropertyType getPropertyType(const PropertyName &) const; virtual QString getPropertyGroupName(const PropertyName &) const; virtual int getPropertyRangeAndValue(const PropertyName &,