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

Method setNodeKeyPoints

ElaWidgetTools/ElaNavigationBar.cpp:457–482  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

455 ElaNavigationNode* node = d->_navigationModel->getNavigationNode(nodeKey);
456 if (!node)
457 {
458 node = d->_footerModel->getNavigationNode(nodeKey);
459 }
460 if (!node)
461 {
462 return;
463 }
464 node->setNodeTitle(nodeTitle);
465 update();
466}
467
468QString ElaNavigationBar::getNodeTitle(const QString& nodeKey) const
469{
470 Q_D(const ElaNavigationBar);
471 ElaNavigationNode* node = d->_navigationModel->getNavigationNode(nodeKey);
472 if (!node)
473 {
474 node = d->_footerModel->getNavigationNode(nodeKey);
475 }
476 if (!node)
477 {
478 return {};
479 }
480 return node->getNodeTitle();
481}
482
483void ElaNavigationBar::navigation(const QString& pageKey, bool isLogClicked, bool isRouteBack)
484{
485 Q_D(ElaNavigationBar);

Callers

nothing calls this directly

Calls 1

getNavigationNodeMethod · 0.45

Tested by

no test coverage detected