Changeset View
Changeset View
Standalone View
Standalone View
plugins/vcschangesview/vcschangesview.cpp
Show First 20 Lines • Show All 91 Lines • ▼ Show 20 Line(s) | 80 | foreach(const QModelIndex& idx, selectionIdxs) { | |||
---|---|---|---|---|---|
92 | } | 92 | } | ||
93 | } | 93 | } | ||
94 | 94 | | |||
95 | QPointer<QMenu> menu = new QMenu(this); | 95 | QPointer<QMenu> menu = new QMenu(this); | ||
96 | QAction* refreshAction = menu->addAction(QIcon::fromTheme(QStringLiteral("view-refresh")), i18n("Refresh")); | 96 | QAction* refreshAction = menu->addAction(QIcon::fromTheme(QStringLiteral("view-refresh")), i18n("Refresh")); | ||
97 | QList<ContextMenuExtension> extensions; | 97 | QList<ContextMenuExtension> extensions; | ||
98 | if(!urls.isEmpty()) { | 98 | if(!urls.isEmpty()) { | ||
99 | KDevelop::FileContext context(urls); | 99 | KDevelop::FileContext context(urls); | ||
100 | extensions = ICore::self()->pluginController()->queryPluginsForContextMenuExtensions( &context ); | 100 | extensions = ICore::self()->pluginController()->queryPluginsForContextMenuExtensions(&context, menu); | ||
101 | } else { | 101 | } else { | ||
102 | QList<ProjectBaseItem*> items; | 102 | QList<ProjectBaseItem*> items; | ||
103 | foreach(IProject* p, projects) | 103 | foreach(IProject* p, projects) | ||
104 | items += p->projectItem(); | 104 | items += p->projectItem(); | ||
105 | 105 | | |||
106 | KDevelop::ProjectItemContextImpl context(items); | 106 | KDevelop::ProjectItemContextImpl context(items); | ||
107 | extensions = ICore::self()->pluginController()->queryPluginsForContextMenuExtensions( &context ); | 107 | extensions = ICore::self()->pluginController()->queryPluginsForContextMenuExtensions(&context, menu); | ||
108 | 108 | | |||
109 | } | 109 | } | ||
110 | 110 | | |||
111 | QList<QAction*> buildActions; | 111 | QList<QAction*> buildActions; | ||
112 | QList<QAction*> vcsActions; | 112 | QList<QAction*> vcsActions; | ||
113 | QList<QAction*> extActions; | 113 | QList<QAction*> extActions; | ||
114 | QList<QAction*> projectActions; | 114 | QList<QAction*> projectActions; | ||
115 | QList<QAction*> fileActions; | 115 | QList<QAction*> fileActions; | ||
▲ Show 20 Lines • Show All 65 Lines • Show Last 20 Lines |