| 178 | |
| 179 | ElaNavigationType::NodeResult ElaNavigationBar::addPageNode(const QString& pageTitle, QWidget* page, ElaIconType::IconName awesome) |
| 180 | { |
| 181 | Q_D(ElaNavigationBar); |
| 182 | if (!page) |
| 183 | { |
| 184 | return ElaNavigationType::PageInvalid; |
| 185 | } |
| 186 | QString pageKey; |
| 187 | ElaNavigationType::NodeResult result = d_ptr->_navigationModel->addPageNode(pageTitle, pageKey, awesome); |
| 188 | if (result == ElaNavigationType::Success) |
| 189 | { |
| 190 | d->_pageMetaMap.insert(pageKey, page->metaObject()); |
| 191 | d->_pageNewWindowCountMap.insert(pageKey, 0); |
| 192 | d->_addStackedPage(page, pageKey); |
| 193 | d->_resetNodeSelected(); |
nothing calls this directly
no test coverage detected