Changeset View
Changeset View
Standalone View
Standalone View
plugins/classbrowser/classbrowserplugin.cpp
Show First 20 Lines • Show All 91 Lines • ▼ Show 20 Line(s) | |||||
92 | { | 92 | { | ||
93 | } | 93 | } | ||
94 | 94 | | |||
95 | void ClassBrowserPlugin::unload() | 95 | void ClassBrowserPlugin::unload() | ||
96 | { | 96 | { | ||
97 | core()->uiController()->removeToolView(m_factory); | 97 | core()->uiController()->removeToolView(m_factory); | ||
98 | } | 98 | } | ||
99 | 99 | | |||
100 | KDevelop::ContextMenuExtension ClassBrowserPlugin::contextMenuExtension( KDevelop::Context* context) | 100 | KDevelop::ContextMenuExtension ClassBrowserPlugin::contextMenuExtension(KDevelop::Context* context, QWidget* parent) | ||
101 | { | 101 | { | ||
102 | KDevelop::ContextMenuExtension menuExt = KDevelop::IPlugin::contextMenuExtension( context ); | 102 | KDevelop::ContextMenuExtension menuExt = KDevelop::IPlugin::contextMenuExtension(context, parent); | ||
103 | 103 | | |||
104 | // No context menu if we don't have a class browser at hand. | 104 | // No context menu if we don't have a class browser at hand. | ||
105 | if ( m_activeClassTree == nullptr ) | 105 | if ( m_activeClassTree == nullptr ) | ||
106 | return menuExt; | 106 | return menuExt; | ||
107 | 107 | | |||
108 | KDevelop::DeclarationContext *codeContext = dynamic_cast<KDevelop::DeclarationContext*>(context); | 108 | KDevelop::DeclarationContext *codeContext = dynamic_cast<KDevelop::DeclarationContext*>(context); | ||
109 | 109 | | |||
110 | if (!codeContext) | 110 | if (!codeContext) | ||
▲ Show 20 Lines • Show All 73 Lines • Show Last 20 Lines |