Cleanup orphan features on DVP delete

This commit is contained in:
WandererFan
2017-02-09 13:18:22 -05:00
parent 392ce697b4
commit b20d51e1b4
5 changed files with 55 additions and 13 deletions

View File

@@ -195,11 +195,10 @@ int QGVPage::addQView(QGIView *view)
Rez::guiX(view->getViewObject()->Y.getValue() * -1));
if(parent) {
// // Transfer the child vierw to the parent
// QPointF posRef(0.,0.);
// QPointF mapPos = view->mapToItem(parent, posRef); //setPos is called later. this doesn't do anything?
// view->moveBy(-mapPos.x(), -mapPos.y());
// move child view to center of parent
QPointF posRef(0.,0.);
QPointF mapPos = view->mapToItem(parent, posRef);
view->moveBy(-mapPos.x(), -mapPos.y());
parent->addToGroup(view);
}