+ PropertyLength inherits PropertyQuantity

This commit is contained in:
wmayer
2014-02-13 17:03:48 +01:00
parent 37f283e7d7
commit 893a5d3a86
4 changed files with 10 additions and 46 deletions

View File

@@ -125,7 +125,12 @@ TYPESYSTEM_SOURCE(App::PropertyAcceleration, App::PropertyFloat);
// PropertyLength
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
TYPESYSTEM_SOURCE(App::PropertyLength, App::PropertyFloat);
TYPESYSTEM_SOURCE(App::PropertyLength, App::PropertyQuantity);
PropertyLength::PropertyLength()
{
setUnit(Base::Unit::Length);
}
const char* PropertyLength::getEditorName(void) const
{

View File

@@ -87,11 +87,11 @@ public:
* This is a property for representing lengths. It is basically a float
* property which must not be negative. On the Gui it has a quantity like m or mm.
*/
class AppExport PropertyLength : public PropertyFloat
class AppExport PropertyLength : public PropertyQuantity
{
TYPESYSTEM_HEADER();
public:
PropertyLength(void){}
PropertyLength(void);
virtual ~PropertyLength(){}
virtual const char* getEditorName(void) const;