From a7870959d399a4e0a329d4166aa39a9bcdf177a4 Mon Sep 17 00:00:00 2001 From: Abdullah Tahiri Date: Fri, 15 Jun 2018 16:24:38 +0200 Subject: [PATCH] Sketcher: Diameter Constraint Property representation --- src/Mod/Sketcher/Gui/PropertyConstraintListItem.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Mod/Sketcher/Gui/PropertyConstraintListItem.cpp b/src/Mod/Sketcher/Gui/PropertyConstraintListItem.cpp index 5b1fd069f8..fcf2772379 100644 --- a/src/Mod/Sketcher/Gui/PropertyConstraintListItem.cpp +++ b/src/Mod/Sketcher/Gui/PropertyConstraintListItem.cpp @@ -79,6 +79,7 @@ void PropertyConstraintListItem::initialize() (*it)->Type == Sketcher::DistanceX || (*it)->Type == Sketcher::DistanceY || (*it)->Type == Sketcher::Radius || + (*it)->Type == Sketcher::Diameter || (*it)->Type == Sketcher::Angle ) { PropertyUnitItem* item = static_cast(PropertyUnitItem::create()); @@ -171,6 +172,7 @@ void PropertyConstraintListItem::assignProperty(const App::Property* prop) (*it)->Type == Sketcher::DistanceX || (*it)->Type == Sketcher::DistanceY || (*it)->Type == Sketcher::Radius || + (*it)->Type == Sketcher::Diameter || (*it)->Type == Sketcher::Angle ) { PropertyUnitItem* child = nullptr; @@ -247,6 +249,7 @@ QVariant PropertyConstraintListItem::value(const App::Property* prop) const (*it)->Type == Sketcher::DistanceX || (*it)->Type == Sketcher::DistanceY || (*it)->Type == Sketcher::Radius || + (*it)->Type == Sketcher::Diameter || (*it)->Type == Sketcher::Angle ) { Base::Quantity quant; @@ -325,6 +328,7 @@ bool PropertyConstraintListItem::event (QEvent* ev) (*it)->Type == Sketcher::DistanceX || (*it)->Type == Sketcher::DistanceY || (*it)->Type == Sketcher::Radius || + (*it)->Type == Sketcher::Diameter || (*it)->Type == Sketcher::Angle ) { // Get the internal name