Delete DPGI's when parent DPG deleted

Ensure Gui/QGIVxx is removed when App/DVxxxx is deleted
This commit is contained in:
WandererFan
2017-01-07 11:12:17 -05:00
parent 221f80e344
commit d6419b5a7e
11 changed files with 172 additions and 61 deletions

View File

@@ -60,7 +60,6 @@ public:
virtual void onChanged(const App::Property *prop);
virtual void updateData(const App::Property*);
virtual void unsetEdit(int ModNum);
virtual bool onDelete(const std::vector<std::string> &items);
QGIView* getQView(void);
MDIViewPage* getMDIViewPage() const;
@@ -70,10 +69,12 @@ public:
virtual void startRestoring();
virtual void finishRestoring();
//@}
virtual TechDraw::DrawView* getViewObject() const;
private:
bool m_docReady; //sb MDI + QGraphicsScene ready
};
} // namespace TechDrawGui