+ move global function to namespace
This commit is contained in:
parent
c1f22cbd8d
commit
d8ad50d11d
|
@ -98,6 +98,7 @@ App::DocumentObjectExecReturn *AttachableObject::execute()
|
||||||
return Part::Feature::execute();
|
return Part::Feature::execute();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
namespace Attacher {
|
||||||
void setReadonlyness(App::Property &prop, bool on)
|
void setReadonlyness(App::Property &prop, bool on)
|
||||||
{
|
{
|
||||||
unsigned long status = prop.getStatus();
|
unsigned long status = prop.getStatus();
|
||||||
|
@ -105,6 +106,7 @@ void setReadonlyness(App::Property &prop, bool 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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user