Gui/ViewProviderGeoFeatureGroup: suppress DocumentObjectGroup's hide/show behavior

This commit is contained in:
Alexander Golubev 2015-09-02 08:04:49 +03:00 committed by Stefan Tröger
parent 2c2d155ee9
commit cebc5860c1
2 changed files with 12 additions and 3 deletions

View File

@ -52,13 +52,13 @@ public:
QIcon getIcon(void) const;
/// returns a list of all possible modes
std::vector<std::string> getDisplayModes(void) const;
void hide(void);
void show(void);
virtual void hide(void);
virtual void show(void);
bool isShow(void) const;
virtual bool onDelete(const std::vector<std::string> &);
/// get called if the user hover over a object in the tree
/// get called if the user hover over a object in the tree
virtual bool allowDrop(const std::vector<const App::DocumentObject*> &objList,Qt::KeyboardModifiers keys,Qt::MouseButtons mouseBts,const QPoint &pos);
/// get called if the user drops some objects
virtual void drop(const std::vector<const App::DocumentObject*> &objList,Qt::KeyboardModifiers keys,Qt::MouseButtons mouseBts,const QPoint &pos);

View File

@ -48,6 +48,15 @@ public:
virtual void setDisplayMode(const char* ModeName);
virtual std::vector<std::string> getDisplayModes(void) const;
/// Show the object in the view: suppresses behavior of DocumentObjectGroup
virtual void show(void) {
ViewProviderDocumentObject::show();
}
/// Hide the object in the view: suppresses behavior of DocumentObjectGroup
virtual void hide(void) {
ViewProviderDocumentObject::hide();
}
virtual void updateData(const App::Property*);
protected:
SoGroup *pcGroupChildren;