MCPcopy Create free account
hub / github.com/KDE/kdevelop / expandingWidget

Method expandingWidget

plugins/quickopen/duchainitemquickopen.cpp:177–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175}
176
177QWidget* 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
190QIcon DUChainItemData::icon() const
191{

Callers

nothing calls this directly

Calls 4

dataMethod · 0.45
contextMethod · 0.45
topContextMethod · 0.45

Tested by

no test coverage detected