App/GeoFeatureGroup: derive from DocumentObjectGroup
Refactor GeoFeatureGroup and derive it from DocumentObjectGroup rather than GeoFeatureObject to unify code of those two classes.
This commit is contained in:
committed by
Stefan Tröger
parent
76b4685b5f
commit
dbb5786ffd
@@ -53,7 +53,7 @@
|
||||
using namespace Gui;
|
||||
|
||||
|
||||
PROPERTY_SOURCE(Gui::ViewProviderOrigin, Gui::ViewProviderGeometryObject)
|
||||
PROPERTY_SOURCE(Gui::ViewProviderOrigin, Gui::ViewProviderGeoFeatureGroup)
|
||||
|
||||
|
||||
/**
|
||||
@@ -70,6 +70,18 @@ ViewProviderOrigin::~ViewProviderOrigin()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
bool ViewProviderOrigin::canDragObjects() const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
bool ViewProviderOrigin::canDropObjects() const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
bool ViewProviderOrigin::setEdit(int ModNum)
|
||||
{
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user