MCPcopy Create free account
hub / github.com/Liniyous/ElaWidgetTools / getNodeKeyPoints

Method getNodeKeyPoints

ElaWidgetTools/ElaWindow.cpp:551–555  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

549 if (widget)
550 {
551 auto originWidget = d->_routeMap[nodeKey];
552 int currentIndex = d->_navigationCenterStackedWidget->getContainerStackedWidget()->currentIndex();
553 int originIndex = d->_navigationCenterStackedWidget->getContainerStackedWidget()->indexOf(originWidget);
554 widget->setProperty("ElaPageKey", nodeKey);
555 d->_routeMap[nodeKey] = widget;
556 d->_navigationCenterStackedWidget->getContainerStackedWidget()->insertWidget(originIndex, widget);
557 d->_navigationCenterStackedWidget->getContainerStackedWidget()->setCurrentIndex(currentIndex);
558 d->_navigationCenterStackedWidget->getContainerStackedWidget()->removeWidget(originWidget);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected