[TD]adjustable extension line gap
This commit is contained in:
committed by
WandererFan
parent
f18ef718ad
commit
fe47248dea
@@ -81,6 +81,10 @@ ViewProviderDimension::ViewProviderDimension()
|
||||
RenderingExtent.setEnums(RenderingExtentEnums);
|
||||
ADD_PROPERTY_TYPE(FlipArrowheads, (false), group, App::Prop_None,
|
||||
"Reverses usual direction of dimension line terminators");
|
||||
ADD_PROPERTY_TYPE(GapFactorISO, (Preferences::ISOGap()), group, App::Prop_None,
|
||||
"Adjusts the gap between dimension point and extension line");
|
||||
ADD_PROPERTY_TYPE(GapFactorASME, (Preferences::ASMEGap()), group, App::Prop_None,
|
||||
"Adjusts the gap between dimension point and extension line");
|
||||
}
|
||||
|
||||
ViewProviderDimension::~ViewProviderDimension()
|
||||
@@ -196,8 +200,9 @@ void ViewProviderDimension::onChanged(const App::Property* p)
|
||||
(p == &LineWidth) ||
|
||||
(p == &StandardAndStyle) ||
|
||||
(p == &RenderingExtent) ||
|
||||
(p == &FlipArrowheads))
|
||||
{
|
||||
(p == &FlipArrowheads) ||
|
||||
(p == &GapFactorASME) ||
|
||||
(p == &GapFactorISO)) {
|
||||
QGIView* qgiv = getQView();
|
||||
if (qgiv) {
|
||||
qgiv->updateView(true);
|
||||
|
||||
Reference in New Issue
Block a user