| 175 | } |
| 176 | |
| 177 | QWidget* DUChainItemData::expandingWidget() const |
| 178 | { |
| 179 | DUChainReadLocker lock; |
| 180 | |
| 181 | auto* decl = dynamic_cast<KDevelop::Declaration*>(m_item.m_item.data()); |
| 182 | if (!decl || !decl->context()) { |
| 183 | return nullptr; |
| 184 | } |
| 185 | |
| 186 | return decl->context()->createNavigationWidget(decl, decl->topContext(), |
| 187 | AbstractNavigationWidget::EmbeddableWidget); |
| 188 | } |
| 189 | |
| 190 | QIcon DUChainItemData::icon() const |
| 191 | { |
nothing calls this directly
no test coverage detected