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

Method showEvent

plugins/contextbrowser/contextbrowserview.cpp:255–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253}
254
255void ContextBrowserView::showEvent(QShowEvent* event)
256{
257 DUChainReadLocker lock(DUChain::lock(), 200);
258 if (!lock.locked()) {
259 QWidget::showEvent(event);
260 return;
261 }
262
263 TopDUContext* top = m_lastUsedTopContext.data();
264 if (top && m_navigationWidgetDeclaration.isValid()) {
265 //Update the navigation-widget
266 Declaration* decl = m_navigationWidgetDeclaration.declaration(top);
267 if (decl)
268 setDeclaration(decl, top, true);
269 }
270 QWidget::showEvent(event);
271}
272
273bool ContextBrowserView::isLocked() const
274{

Callers

nothing calls this directly

Calls 4

lockedMethod · 0.80
dataMethod · 0.45
isValidMethod · 0.45
declarationMethod · 0.45

Tested by

no test coverage detected