Changeset View
Changeset View
Standalone View
Standalone View
plugins/documentview/kdevdocumentview.cpp
Show First 20 Lines • Show All 179 Lines • ▼ Show 20 Line(s) | 173 | { | |||
---|---|---|---|---|---|
180 | updateSelectedDocs(); | 180 | updateSelectedDocs(); | ||
181 | 181 | | |||
182 | if (!m_selectedDocs.isEmpty()) | 182 | if (!m_selectedDocs.isEmpty()) | ||
183 | { | 183 | { | ||
184 | QMenu* ctxMenu = new QMenu(this); | 184 | QMenu* ctxMenu = new QMenu(this); | ||
185 | 185 | | |||
186 | KDevelop::FileContext context(m_selectedDocs); | 186 | KDevelop::FileContext context(m_selectedDocs); | ||
187 | QList<KDevelop::ContextMenuExtension> extensions = | 187 | QList<KDevelop::ContextMenuExtension> extensions = | ||
188 | m_plugin->core()->pluginController()->queryPluginsForContextMenuExtensions( &context ); | 188 | m_plugin->core()->pluginController()->queryPluginsForContextMenuExtensions(&context, ctxMenu); | ||
189 | 189 | | |||
190 | QList<QAction*> vcsActions; | 190 | QList<QAction*> vcsActions; | ||
191 | QList<QAction*> fileActions; | 191 | QList<QAction*> fileActions; | ||
192 | QList<QAction*> editActions; | 192 | QList<QAction*> editActions; | ||
193 | QList<QAction*> extensionActions; | 193 | QList<QAction*> extensionActions; | ||
194 | foreach( const KDevelop::ContextMenuExtension& ext, extensions ) | 194 | foreach( const KDevelop::ContextMenuExtension& ext, extensions ) | ||
195 | { | 195 | { | ||
196 | fileActions += ext.actions(KDevelop::ContextMenuExtension::FileGroup); | 196 | fileActions += ext.actions(KDevelop::ContextMenuExtension::FileGroup); | ||
▲ Show 20 Lines • Show All 169 Lines • Show Last 20 Lines |