+ move global function to namespace

This commit is contained in:
wmayer 2016-05-07 12:21:21 +02:00
parent c1f22cbd8d
commit d8ad50d11d

View File

@ -98,12 +98,14 @@ App::DocumentObjectExecReturn *AttachableObject::execute()
return Part::Feature::execute(); return Part::Feature::execute();
} }
void setReadonlyness(App::Property &prop, bool on) namespace Attacher {
{ void setReadonlyness(App::Property &prop, bool on)
{
unsigned long status = prop.getStatus(); unsigned long status = prop.getStatus();
prop.setStatus(App::Property::ReadOnly, on); prop.setStatus(App::Property::ReadOnly, on);
if (status != prop.getStatus()) if (status != prop.getStatus())
App::GetApplication().signalChangePropertyEditor(prop); App::GetApplication().signalChangePropertyEditor(prop);
}
} }
void AttachableObject::onChanged(const App::Property* prop) void AttachableObject::onChanged(const App::Property* prop)