| 22 | |
| 23 | template <> |
| 24 | AbstractNavigationWidget* QmlJSTopDUContext::createNavigationWidget(Declaration* decl, TopDUContext* topContext, |
| 25 | AbstractNavigationWidget::DisplayHints hints) const |
| 26 | { |
| 27 | if (!decl) { |
| 28 | const QUrl u = url().toUrl(); |
| 29 | IncludeItem item; |
| 30 | item.pathNumber = -1; |
| 31 | item.name = u.fileName(); |
| 32 | item.isDirectory = false; |
| 33 | item.basePath = u.adjusted(QUrl::RemoveFilename | QUrl::StripTrailingSlash); |
| 34 | |
| 35 | return new NavigationWidget(item, TopDUContextPointer(topContext ? topContext : this->topContext()), hints); |
| 36 | } |
| 37 | return new NavigationWidget(decl, topContext, hints); |
| 38 | } |
| 39 | |
| 40 | template <> |
| 41 | AbstractNavigationWidget* |
no test coverage detected