Mercurial > hg > svcore
diff base/View.h @ 94:5b8392e80ed6
* Add property labels to property containers (so i18n() won't affect file format)
author | Chris Cannam |
---|---|
date | Wed, 03 May 2006 16:48:03 +0000 |
parents | c983dda79f72 |
children | c30728d5625c |
line wrap: on
line diff
--- a/base/View.h Wed May 03 16:47:04 2006 +0000 +++ b/base/View.h Wed May 03 16:48:03 2006 +0000 @@ -204,6 +204,7 @@ // PropertyContainer that we can return on request that just // delegates back to us. virtual PropertyContainer::PropertyList getProperties() const; + virtual QString getPropertyLabel(const PropertyName &) const; virtual PropertyContainer::PropertyType getPropertyType(const PropertyName &) const; virtual int getPropertyRangeAndValue(const PropertyName &, int *min, int *max) const; @@ -328,6 +329,9 @@ public: ViewPropertyContainer(View *v); PropertyList getProperties() const { return m_v->getProperties(); } + QString getPropertyLabel(const PropertyName &n) const { + return m_v->getPropertyLabel(n); + } PropertyType getPropertyType(const PropertyName &n) const { return m_v->getPropertyType(n); }