[TD]fix front view position in projection group (fix #19085)
This commit is contained in:
committed by
Yorik van Havre
parent
27732fdf50
commit
44a1e8de4d
@@ -43,6 +43,9 @@
|
||||
#include <Mod/TechDraw/App/DrawViewSection.h>
|
||||
|
||||
#include "TaskProjGroup.h"
|
||||
#include "QGIViewPart.h"
|
||||
#include "QGSPage.h"
|
||||
#include "ViewProviderPage.h"
|
||||
#include "ViewProviderProjGroup.h"
|
||||
|
||||
using namespace TechDrawGui;
|
||||
@@ -216,3 +219,25 @@ TechDraw::DrawProjGroup* ViewProviderProjGroup::getObject() const
|
||||
{
|
||||
return getViewObject();
|
||||
}
|
||||
|
||||
|
||||
//! gather the (existing) graphics for our sub views into our scene group.
|
||||
void ViewProviderProjGroup::regroupSubViews()
|
||||
{
|
||||
auto vpPage = getViewProviderPage();
|
||||
if (!vpPage) {
|
||||
return;
|
||||
}
|
||||
|
||||
auto scene = vpPage->getQGSPage();
|
||||
auto dpgQView = getQView();
|
||||
|
||||
auto viewsAll = getObject()->getViewsAsDPGI();
|
||||
for (auto& view : viewsAll) {
|
||||
auto viewQView = dynamic_cast<QGIViewPart *>(scene->findQViewForDocObj(view));
|
||||
if (viewQView) {
|
||||
scene->addItemToParent(viewQView, dpgQView);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user