diff view/View.h @ 216:34bbbcb3c01f sv1-1.0pre1

* Make getPropertyRangeAndValue return the default separately from the current value. Previously some contexts were incorrectly treating the current value as a default.
author Chris Cannam
date Fri, 02 Mar 2007 14:00:12 +0000
parents e2baee498ec8
children bd2d0346da0e
line wrap: on
line diff
--- a/view/View.h	Fri Mar 02 13:01:41 2007 +0000
+++ b/view/View.h	Fri Mar 02 14:00:12 2007 +0000
@@ -202,7 +202,7 @@
     virtual QString getPropertyLabel(const PropertyName &) const;
     virtual PropertyContainer::PropertyType getPropertyType(const PropertyName &) const;
     virtual int getPropertyRangeAndValue(const PropertyName &,
-					 int *min, int *max) const;
+					 int *min, int *max, int *deflt) const;
     virtual QString getPropertyValueLabel(const PropertyName &,
 					  int value) const;
     virtual void setProperty(const PropertyName &, int value);
@@ -346,8 +346,9 @@
     PropertyType getPropertyType(const PropertyName &n) const {
 	return m_v->getPropertyType(n);
     }
-    int getPropertyRangeAndValue(const PropertyName &n, int *min, int *max) const {
-	return m_v->getPropertyRangeAndValue(n, min, max);
+    int getPropertyRangeAndValue(const PropertyName &n, int *min, int *max,
+                                 int *deflt) const {
+	return m_v->getPropertyRangeAndValue(n, min, max, deflt);
     }
     QString getPropertyValueLabel(const PropertyName &n, int value) const {
 	return m_v->getPropertyValueLabel(n, value);