[TD] use PropertyQuantity for OverTolerance and UnderTolerance and add backward compatibility

This commit is contained in:
wmayer
2020-12-02 15:51:06 +01:00
parent e71b7ac879
commit e95b3167dd
2 changed files with 39 additions and 2 deletions

View File

@@ -105,8 +105,8 @@ public:
App::PropertyString FormatSpecOverTolerance;
App::PropertyBool Arbitrary;
App::PropertyBool ArbitraryTolerances;
App::PropertyFloat OverTolerance;
App::PropertyFloat UnderTolerance;
App::PropertyQuantity OverTolerance;
App::PropertyQuantity UnderTolerance;
enum RefType{
invalidRef,
@@ -164,6 +164,7 @@ public:
bool useDecimals() const;
protected:
virtual void handleChangedPropertyType(Base::XMLReader &, const char * , App::Property * ) override;
virtual void onChanged(const App::Property* prop) override;
virtual void onDocumentRestored() override;
std::string getPrefix() const;