| 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 | |
| 468 | QString 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 | |
| 483 | void ElaNavigationBar::navigation(const QString& pageKey, bool isLogClicked, bool isRouteBack) |
| 484 | { |
| 485 | Q_D(ElaNavigationBar); |
nothing calls this directly
no test coverage detected