Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
+ move global function to namespace
  • Loading branch information
wwmayer committed May 7, 2016
1 parent c1f22cb commit d8ad50d
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/Mod/Part/App/AttachableObject.cpp
Expand Up @@ -98,12 +98,14 @@ App::DocumentObjectExecReturn *AttachableObject::execute()
return Part::Feature::execute();
}

void setReadonlyness(App::Property &prop, bool on)
{
unsigned long status = prop.getStatus();
prop.setStatus(App::Property::ReadOnly, on);
if (status != prop.getStatus())
App::GetApplication().signalChangePropertyEditor(prop);
namespace Attacher {
void setReadonlyness(App::Property &prop, bool on)
{
unsigned long status = prop.getStatus();
prop.setStatus(App::Property::ReadOnly, on);
if (status != prop.getStatus())
App::GetApplication().signalChangePropertyEditor(prop);
}
}

void AttachableObject::onChanged(const App::Property* prop)
Expand Down

0 comments on commit d8ad50d

Please sign in to comment.