| 253 | } |
| 254 | |
| 255 | void 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 | |
| 273 | bool ContextBrowserView::isLocked() const |
| 274 | { |
nothing calls this directly
no test coverage detected