[TechDraw] Add Owner property to Symbols

This commit is contained in:
pavltom
2024-02-11 13:53:48 +01:00
committed by WandererFan
parent ce2bd168d5
commit c21dca3a21
18 changed files with 254 additions and 27 deletions

View File

@@ -663,6 +663,26 @@ void QGIView::addArbitraryItem(QGraphicsItem* qgi)
}
}
void QGIView::switchParentItem(QGIView *targetParent)
{
auto currentParent = dynamic_cast<QGIView *>(this->parentItem());
if (currentParent != targetParent) {
if (targetParent) {
targetParent->addToGroup(this);
}
else {
currentParent->removeFromGroup(this);
}
if (currentParent) {
currentParent->updateView();
}
if (targetParent) {
targetParent->updateView();
}
}
}
void QGIView::setStack(int z)
{
m_zOrder = z;