Changeset View
Changeset View
Standalone View
Standalone View
plugins/patchreview/patchreviewtoolview.cpp
Show First 20 Lines • Show All 266 Lines • ▼ Show 20 Line(s) | 264 | { | |||
---|---|---|---|---|---|
267 | foreach(const QModelIndex& idx, selectionIdxs) { | 267 | foreach(const QModelIndex& idx, selectionIdxs) { | ||
268 | urls += idx.data(KDevelop::VcsFileChangesModel::UrlRole).toUrl(); | 268 | urls += idx.data(KDevelop::VcsFileChangesModel::UrlRole).toUrl(); | ||
269 | } | 269 | } | ||
270 | 270 | | |||
271 | QPointer<QMenu> menu = new QMenu(m_editPatch.filesList); | 271 | QPointer<QMenu> menu = new QMenu(m_editPatch.filesList); | ||
272 | QList<ContextMenuExtension> extensions; | 272 | QList<ContextMenuExtension> extensions; | ||
273 | if(!urls.isEmpty()) { | 273 | if(!urls.isEmpty()) { | ||
274 | KDevelop::FileContext context(urls); | 274 | KDevelop::FileContext context(urls); | ||
275 | extensions = ICore::self()->pluginController()->queryPluginsForContextMenuExtensions( &context ); | 275 | extensions = ICore::self()->pluginController()->queryPluginsForContextMenuExtensions(&context, menu); | ||
276 | } | 276 | } | ||
277 | 277 | | |||
278 | QList<QAction*> vcsActions; | 278 | QList<QAction*> vcsActions; | ||
279 | foreach( const ContextMenuExtension& ext, extensions ) | 279 | foreach( const ContextMenuExtension& ext, extensions ) | ||
280 | { | 280 | { | ||
281 | vcsActions += ext.actions(ContextMenuExtension::VcsGroup); | 281 | vcsActions += ext.actions(ContextMenuExtension::VcsGroup); | ||
282 | } | 282 | } | ||
283 | 283 | | |||
▲ Show 20 Lines • Show All 317 Lines • Show Last 20 Lines |